mercurial/transaction.py
branchstable
changeset 23103 29bfa964d6d8
parent 23102 16da812ad970
child 23202 ea5af863fbff
--- a/mercurial/transaction.py	Mon Sep 29 00:59:25 2014 -0700
+++ b/mercurial/transaction.py	Fri Oct 17 21:25:48 2014 -0700
@@ -266,8 +266,8 @@
     @active
     def close(self):
         '''commit the transaction'''
-        self._generatefiles()
         if self.count == 1 and self.onclose is not None:
+            self._generatefiles()
             self.onclose()
 
         self.count -= 1