⇤ ← Revision 1 as of 2016-06-28 06:48:33
Size: 648
Comment: add initial plan for bare update
|
Size: 700
Comment: clarify not moving away from the commit
|
Deletions are marked like this. | Additions are marked like this. |
Line 11: | Line 11: |
Moving an active bookmark with 'hg up' is non-deterministic and will be changed. Not only that, but there are few cases where it makes sense. | Moving an active bookmark with 'hg up' is non-deterministic and will be changed. The proposed solution is to treat a bookmark as a head and stay at the current commit when a bookmark is active. |
Note:
This page is primarily intended for developers of Mercurial.
Bare Update with Bookmarks
Status: Decided at London Sprint
This is a work in progress
Moving an active bookmark with 'hg up' is non-deterministic and will be changed. The proposed solution is to treat a bookmark as a head and stay at the current commit when a bookmark is active.
1. Goal
To preserve the current behavior a new bookmark alias will be introduced: hg update -B .
That means there are three or so patches to achieve this:
introduce a -B . argument to update
add -B to current tests
- make a bare update no longer move the bookmark