Permalink
Browse files

Revert file transactions in reverse order.

Revert in the reverse order in which the transactions were originally
performed.
  • Loading branch information...
1 parent 02fd384 commit 37029572fa0889c80d1c11e1db97fa3e9dff80ad @modocache committed Oct 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 generate_scaffold/management/transactions.py
@@ -102,7 +102,7 @@ def generate_path(self):
return os.path.join(self.temp_directory, str(self.counter))
def rollback(self):
- for entry in self.log:
+ for entry in reversed(self.log):
entry.rollback()
def commit(self):

0 comments on commit 3702957

Please sign in to comment.