Mercurial > public > mercurial-scm > hg-stable
diff tests/test-fncache.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 | 3efc99ac2ac4 |
children | 9910f60a37ee |
line wrap: on
line diff
--- a/tests/test-fncache.t Fri May 06 15:37:38 2011 +0300 +++ b/tests/test-fncache.t Sun May 01 13:07:00 2011 +0200 @@ -76,6 +76,7 @@ .hg/last-message.txt .hg/requires .hg/undo + .hg/undo.bookmarks .hg/undo.branch .hg/undo.desc .hg/undo.dirstate @@ -102,6 +103,7 @@ .hg/store/data/tst.d.hg .hg/store/data/tst.d.hg/_foo.i .hg/store/undo + .hg/undo.bookmarks .hg/undo.branch .hg/undo.desc .hg/undo.dirstate