Mercurial > hg
comparison tests/test-inherit-mode.t @ 14266:89e7d35e0ef0 stable
fix bookmarks rollback behavior
Before this patch undo.bookmarks was created on bookmarks write and
not with other transaction-related files. There were two issues: first
is that if you have changed bookmarks few times after a transaction
happened, rollback will give you a state which can point to
non-existing revision. Second is that if you have not changed
bookmarks after a transaction, rollback will touch your state anyway.
This change also adds `localrepo._writejournal` method, which can be
used by other extensions to save their transaction-related backup in
right time.
author | Alexander Solovyov <alexander@solovyov.net> |
---|---|
date | Sun, 01 May 2011 13:07:00 +0200 |
parents | 5ccdca7df211 |
children | c6f87bdab2a1 |
comparison
equal
deleted
inserted
replaced
14211:b00ab6890fe9 | 14266:89e7d35e0ef0 |
---|---|
75 00770 ./.hg/store/data/dir/ | 75 00770 ./.hg/store/data/dir/ |
76 00660 ./.hg/store/data/dir/bar.i | 76 00660 ./.hg/store/data/dir/bar.i |
77 00660 ./.hg/store/data/foo.i | 77 00660 ./.hg/store/data/foo.i |
78 00660 ./.hg/store/fncache | 78 00660 ./.hg/store/fncache |
79 00660 ./.hg/store/undo | 79 00660 ./.hg/store/undo |
80 00660 ./.hg/undo.bookmarks | |
80 00660 ./.hg/undo.branch | 81 00660 ./.hg/undo.branch |
81 00660 ./.hg/undo.desc | 82 00660 ./.hg/undo.desc |
82 00660 ./.hg/undo.dirstate | 83 00660 ./.hg/undo.dirstate |
83 00700 ./dir/ | 84 00700 ./dir/ |
84 00600 ./dir/bar | 85 00600 ./dir/bar |
115 00770 ../push/.hg/store/data/dir/ | 116 00770 ../push/.hg/store/data/dir/ |
116 00660 ../push/.hg/store/data/dir/bar.i | 117 00660 ../push/.hg/store/data/dir/bar.i |
117 00660 ../push/.hg/store/data/foo.i | 118 00660 ../push/.hg/store/data/foo.i |
118 00660 ../push/.hg/store/fncache | 119 00660 ../push/.hg/store/fncache |
119 00660 ../push/.hg/store/undo | 120 00660 ../push/.hg/store/undo |
121 00660 ../push/.hg/undo.bookmarks | |
120 00660 ../push/.hg/undo.branch | 122 00660 ../push/.hg/undo.branch |
121 00660 ../push/.hg/undo.desc | 123 00660 ../push/.hg/undo.desc |
122 00660 ../push/.hg/undo.dirstate | 124 00660 ../push/.hg/undo.dirstate |
123 | 125 |
124 | 126 |