##// END OF EJS Templates
Fix empty repository transaction bug...
mpm@selenic.com -
r263:e8eb427c default
parent child Browse files
Show More
@@ -354,7 +354,10 b' class localrepository:'
354
354
355 def transaction(self):
355 def transaction(self):
356 # save dirstate for undo
356 # save dirstate for undo
357 ds = self.opener("dirstate").read()
357 try:
358 ds = self.opener("dirstate").read()
359 except IOError:
360 ds = ""
358 self.opener("undo.dirstate", "w").write(ds)
361 self.opener("undo.dirstate", "w").write(ds)
359
362
360 return transaction.transaction(self.opener, self.join("journal"),
363 return transaction.transaction(self.opener, self.join("journal"),
General Comments 0
You need to be logged in to leave comments. Login now