Show More
@@ -758,10 +758,16 b' class localrepository(repo.repository):' | |||
|
758 | 758 | util.copyfile(bkname, self.join('journal.bookmarks')) |
|
759 | 759 | else: |
|
760 | 760 | self.opener.write('journal.bookmarks', '') |
|
761 | phasesname = self.sjoin('phaseroots') | |
|
762 | if os.path.exists(phasesname): | |
|
763 | util.copyfile(phasesname, self.sjoin('journal.phaseroots')) | |
|
764 | else: | |
|
765 | self.sopener.write('journal.phaseroots', '') | |
|
761 | 766 | |
|
762 | 767 | return (self.sjoin('journal'), self.join('journal.dirstate'), |
|
763 | 768 | self.join('journal.branch'), self.join('journal.desc'), |
|
764 |
self.join('journal.bookmarks') |
|
|
769 | self.join('journal.bookmarks'), | |
|
770 | self.sjoin('journal.phaseroots')) | |
|
765 | 771 | |
|
766 | 772 | def recover(self): |
|
767 | 773 | lock = self.lock() |
@@ -826,6 +832,9 b' class localrepository(repo.repository):' | |||
|
826 | 832 | if os.path.exists(self.join('undo.bookmarks')): |
|
827 | 833 | util.rename(self.join('undo.bookmarks'), |
|
828 | 834 | self.join('bookmarks')) |
|
835 | if os.path.exists(self.sjoin('undo.phaseroots')): | |
|
836 | util.rename(self.sjoin('undo.phaseroots'), | |
|
837 | self.sjoin('phaseroots')) | |
|
829 | 838 | self.invalidate() |
|
830 | 839 | |
|
831 | 840 | parentgone = (parents[0] not in self.changelog.nodemap or |
@@ -80,6 +80,7 b' Non store repo:' | |||
|
80 | 80 | .hg/undo.branch |
|
81 | 81 | .hg/undo.desc |
|
82 | 82 | .hg/undo.dirstate |
|
83 | .hg/undo.phaseroots | |
|
83 | 84 | $ cd .. |
|
84 | 85 | |
|
85 | 86 | Non fncache repo: |
@@ -103,6 +104,7 b' Non fncache repo:' | |||
|
103 | 104 | .hg/store/data/tst.d.hg |
|
104 | 105 | .hg/store/data/tst.d.hg/_foo.i |
|
105 | 106 | .hg/store/undo |
|
107 | .hg/store/undo.phaseroots | |
|
106 | 108 | .hg/undo.bookmarks |
|
107 | 109 | .hg/undo.branch |
|
108 | 110 | .hg/undo.desc |
@@ -48,6 +48,7 b' Prepare repo r1:' | |||
|
48 | 48 | 1 r1/.hg/store/data/f1.i |
|
49 | 49 | 1 r1/.hg/store/fncache |
|
50 | 50 | 1 r1/.hg/store/undo |
|
51 | 1 r1/.hg/store/undo.phaseroots | |
|
51 | 52 | |
|
52 | 53 | |
|
53 | 54 | Create hardlinked clone r2: |
@@ -76,6 +77,7 b' Repos r1 and r2 should now contain hardl' | |||
|
76 | 77 | 2 r1/.hg/store/data/f1.i |
|
77 | 78 | 2 r1/.hg/store/fncache |
|
78 | 79 | 1 r1/.hg/store/undo |
|
80 | 1 r1/.hg/store/undo.phaseroots | |
|
79 | 81 | |
|
80 | 82 | $ nlinksdir r2/.hg/store |
|
81 | 83 | 2 r2/.hg/store/00changelog.i |
@@ -93,6 +95,7 b' Repo r3 should not be hardlinked:' | |||
|
93 | 95 | 1 r3/.hg/store/data/f1.i |
|
94 | 96 | 1 r3/.hg/store/fncache |
|
95 | 97 | 1 r3/.hg/store/undo |
|
98 | 1 r3/.hg/store/undo.phaseroots | |
|
96 | 99 | |
|
97 | 100 | |
|
98 | 101 | Create a non-inlined filelog in r3: |
@@ -113,6 +116,7 b' Create a non-inlined filelog in r3:' | |||
|
113 | 116 | 1 r3/.hg/store/data/f1.i |
|
114 | 117 | 1 r3/.hg/store/fncache |
|
115 | 118 | 1 r3/.hg/store/undo |
|
119 | 1 r3/.hg/store/undo.phaseroots | |
|
116 | 120 | |
|
117 | 121 | Push to repo r1 should break up most hardlinks in r2: |
|
118 | 122 | |
@@ -196,6 +200,7 b' r4 has hardlinks in the working dir (not' | |||
|
196 | 200 | 2 r4/.hg/store/data/f1.i |
|
197 | 201 | 2 r4/.hg/store/fncache |
|
198 | 202 | 2 r4/.hg/store/undo |
|
203 | 2 r4/.hg/store/undo.phaseroots | |
|
199 | 204 | 2 r4/.hg/undo.bookmarks |
|
200 | 205 | 2 r4/.hg/undo.branch |
|
201 | 206 | 2 r4/.hg/undo.desc |
@@ -225,6 +230,7 b' Update back to revision 11 in r4 should ' | |||
|
225 | 230 | 2 r4/.hg/store/data/f1.i |
|
226 | 231 | 2 r4/.hg/store/fncache |
|
227 | 232 | 2 r4/.hg/store/undo |
|
233 | 2 r4/.hg/store/undo.phaseroots | |
|
228 | 234 | 2 r4/.hg/undo.bookmarks |
|
229 | 235 | 2 r4/.hg/undo.branch |
|
230 | 236 | 2 r4/.hg/undo.desc |
@@ -17,4 +17,4 b' Test hangup signal in the middle of tran' | |||
|
17 | 17 | rollback completed |
|
18 | 18 | killed! |
|
19 | 19 | $ echo .hg/* .hg/store/* |
|
20 | .hg/00changelog.i .hg/journal.bookmarks .hg/journal.branch .hg/journal.desc .hg/journal.dirstate .hg/requires .hg/store .hg/store/00changelog.i .hg/store/00changelog.i.a | |
|
20 | .hg/00changelog.i .hg/journal.bookmarks .hg/journal.branch .hg/journal.desc .hg/journal.dirstate .hg/requires .hg/store .hg/store/00changelog.i .hg/store/00changelog.i.a .hg/store/journal.phaseroots |
@@ -77,6 +77,7 b' new directories are setgid' | |||
|
77 | 77 | 00660 ./.hg/store/data/foo.i |
|
78 | 78 | 00660 ./.hg/store/fncache |
|
79 | 79 | 00660 ./.hg/store/undo |
|
80 | 00660 ./.hg/store/undo.phaseroots | |
|
80 | 81 | 00660 ./.hg/undo.bookmarks |
|
81 | 82 | 00660 ./.hg/undo.branch |
|
82 | 83 | 00660 ./.hg/undo.desc |
@@ -118,6 +119,7 b' group can still write everything' | |||
|
118 | 119 | 00660 ../push/.hg/store/data/foo.i |
|
119 | 120 | 00660 ../push/.hg/store/fncache |
|
120 | 121 | 00660 ../push/.hg/store/undo |
|
122 | 00660 ../push/.hg/store/undo.phaseroots | |
|
121 | 123 | 00660 ../push/.hg/undo.bookmarks |
|
122 | 124 | 00660 ../push/.hg/undo.branch |
|
123 | 125 | 00660 ../push/.hg/undo.desc |
General Comments 0
You need to be logged in to leave comments.
Login now