undo actions are in the wrong order

Bug #551509 reported by Mario Ceresa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rollmeback
Fix Committed
Medium
Mario Ceresa

Bug Description

Actions emitted into the undo script are in the wrong order:

ex:
mkdir TEST_DIR
touch TEST_DIR/TEST_FILE
rm -rf TEST_DIR

outputs:
rm TEST_DIR/TEST_FILE
mkdir TEST_DIR
rm TEST_DIR

instead of:
mkdir TEST_DIR
touch TEST_DIR/TEST_FILE
rm TEST_DIR/TEST_FILE
rmdir TEST_DIR

Even if the result is the same, the incorrect order can give problem in more complicated situations and confuses the reader of the script.

Revision history for this message
Mario Ceresa (mrceresa) wrote :

This behaviour originates because the changes are grouped for the entry they refer to instead of using the time of arrival

Changed in rollmeback:
status: New → Confirmed
assignee: nobody → Mario Ceresa (mrceresa)
Mario Ceresa (mrceresa)
description: updated
Mario Ceresa (mrceresa)
Changed in rollmeback:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.