Mercurial > public > mercurial-scm > hg
diff tests/test-convert-hg-source.t @ 16708:4a02cf4fbb2e
merge: respect bookmarks during merge
Bookmarks will behave more like named branches when merge tries to pick
a revision to merge.
Bookmarks now to respect the current bookmarks. Bookmarks will not
accidentally merged with unnamed heads or other bookmarks. However merge
can pick heads with diverging bookmarks and pick those automatically.
We end up with two cases for picking a revision to merge:
(1) In case of an current bookmark, merge can pick a branch head that has a
diverged bookmark
(2) In case of no current bookmark, merge can pick a branch head that does not
have a bookmark.
author | David Soria Parra <dsp@php.net> |
---|---|
date | Sun, 13 May 2012 11:55:42 +0200 |
parents | db0340f4b507 |
children | 8149ff405c78 |
line wrap: on
line diff
--- a/tests/test-convert-hg-source.t Sun May 13 11:54:58 2012 +0200 +++ b/tests/test-convert-hg-source.t Sun May 13 11:55:42 2012 +0200 @@ -19,7 +19,7 @@ $ hg ci -m 'make bar and baz copies of foo' -d '2 0' created new head $ hg bookmark premerge1 - $ hg merge + $ hg merge -r 1 merging baz and foo to baz 1 files updated, 1 files merged, 0 files removed, 0 files unresolved (branch merge, don't forget to commit)