Permalink
Browse files

Merge pull request #24 from modocache/hotfix-transaction-revert-order

Revert file transactions in reverse order.
  • Loading branch information...
modocache committed Oct 11, 2012
2 parents 02fd384 + 3702957 commit 776ed157aaa58e168adef5aa8070f0795e158de1
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 776ed15

Please sign in to comment.