Show More
@@ -1012,9 +1012,6 b' class localrepository(object):' | |||||
1012 | _("abandoned transaction found"), |
|
1012 | _("abandoned transaction found"), | |
1013 | hint=_("run 'hg recover' to clean up transaction")) |
|
1013 | hint=_("run 'hg recover' to clean up transaction")) | |
1014 |
|
1014 | |||
1015 | # make journal.dirstate contain in-memory changes at this point |
|
|||
1016 | self.dirstate.write(None) |
|
|||
1017 |
|
||||
1018 | idbase = "%.40f#%f" % (random.random(), time.time()) |
|
1015 | idbase = "%.40f#%f" % (random.random(), time.time()) | |
1019 | txnid = 'TXN:' + util.sha1(idbase).hexdigest() |
|
1016 | txnid = 'TXN:' + util.sha1(idbase).hexdigest() | |
1020 | self.hook('pretxnopen', throw=True, txnname=desc, txnid=txnid) |
|
1017 | self.hook('pretxnopen', throw=True, txnname=desc, txnid=txnid) | |
@@ -1099,8 +1096,7 b' class localrepository(object):' | |||||
1099 | return [(vfs, undoname(x)) for vfs, x in self._journalfiles()] |
|
1096 | return [(vfs, undoname(x)) for vfs, x in self._journalfiles()] | |
1100 |
|
1097 | |||
1101 | def _writejournal(self, desc): |
|
1098 | def _writejournal(self, desc): | |
1102 | self.vfs.write("journal.dirstate", |
|
1099 | self.dirstate.savebackup(None, prefix='journal.') | |
1103 | self.vfs.tryread("dirstate")) |
|
|||
1104 | self.vfs.write("journal.branch", |
|
1100 | self.vfs.write("journal.branch", | |
1105 | encoding.fromlocal(self.dirstate.branch())) |
|
1101 | encoding.fromlocal(self.dirstate.branch())) | |
1106 | self.vfs.write("journal.desc", |
|
1102 | self.vfs.write("journal.desc", |
@@ -117,6 +117,7 b' group can still write everything' | |||||
117 | 00660 ../push/.hg/cache/branch2-base |
|
117 | 00660 ../push/.hg/cache/branch2-base | |
118 | 00660 ../push/.hg/cache/rbc-names-v1 |
|
118 | 00660 ../push/.hg/cache/rbc-names-v1 | |
119 | 00660 ../push/.hg/cache/rbc-revs-v1 |
|
119 | 00660 ../push/.hg/cache/rbc-revs-v1 | |
|
120 | 00660 ../push/.hg/dirstate | |||
120 | 00660 ../push/.hg/requires |
|
121 | 00660 ../push/.hg/requires | |
121 | 00770 ../push/.hg/store/ |
|
122 | 00770 ../push/.hg/store/ | |
122 | 00660 ../push/.hg/store/00changelog.i |
|
123 | 00660 ../push/.hg/store/00changelog.i |
General Comments 0
You need to be logged in to leave comments.
Login now