# HG changeset patch # User Thomas Arendsen Hein # Date 1351256011 -7200 # Node ID 52c7e171e35563c8f27bd74bc12b2de45fe99fa6 # Parent 7d2dd10ce9eae9e8060d8da48834e834235b9525 clone: print bookmark name when clone activates a bookmark Similar to the message that prints the checked out branch name. Without this, the user might accidentally move the @ bookmark. diff -r 7d2dd10ce9ea -r 52c7e171e355 mercurial/hg.py --- a/mercurial/hg.py Fri Oct 26 14:37:03 2012 +0200 +++ b/mercurial/hg.py Fri Oct 26 14:53:31 2012 +0200 @@ -428,6 +428,7 @@ destrepo.ui.status(_("updating to branch %s\n") % bn) _update(destrepo, uprev) if update in destrepo._bookmarks: + destrepo.ui.status(_("active bookmark: %s\n") % update) bookmarks.setcurrent(destrepo, update) return srcpeer, destpeer diff -r 7d2dd10ce9ea -r 52c7e171e355 tests/test-bookmarks-pushpull.t --- a/tests/test-bookmarks-pushpull.t Fri Oct 26 14:37:03 2012 +0200 +++ b/tests/test-bookmarks-pushpull.t Fri Oct 26 14:53:31 2012 +0200 @@ -337,6 +337,7 @@ added 5 changesets with 5 changes to 3 files (+2 heads) updating to branch default 2 files updated, 0 files merged, 0 files removed, 0 files unresolved + active bookmark: @ $ hg -R cloned-bookmarks bookmarks * @ 1:9b140be10808 X 1:9b140be10808 @@ -357,6 +358,7 @@ added 5 changesets with 5 changes to 3 files (+2 heads) updating to branch default 2 files updated, 0 files merged, 0 files removed, 0 files unresolved + active bookmark: @ $ cd addmarks $ echo foo > foo $ hg add foo diff -r 7d2dd10ce9ea -r 52c7e171e355 tests/test-bookmarks.t --- a/tests/test-bookmarks.t Fri Oct 26 14:37:03 2012 +0200 +++ b/tests/test-bookmarks.t Fri Oct 26 14:53:31 2012 +0200 @@ -365,6 +365,7 @@ $ hg clone . cloned-bookmarks updating to branch default 2 files updated, 0 files merged, 0 files removed, 0 files unresolved + active bookmark: @ $ hg -R cloned-bookmarks bookmarks * @ 2:db815d6d32e6 X2 1:925d80f479bb @@ -383,6 +384,7 @@ added 3 changesets with 3 changes to 3 files (+1 heads) updating to branch default 2 files updated, 0 files merged, 0 files removed, 0 files unresolved + active bookmark: @ $ hg -R cloned-bookmarks-pull bookmarks * @ 2:db815d6d32e6 X2 1:925d80f479bb @@ -427,6 +429,7 @@ $ hg clone -u Z . cloned-bookmarks-update updating to branch default 2 files updated, 0 files merged, 0 files removed, 0 files unresolved + active bookmark: Z $ hg -R cloned-bookmarks-update bookmarks X2 1:925d80f479bb Y 2:db815d6d32e6 diff -r 7d2dd10ce9ea -r 52c7e171e355 tests/test-clone.t --- a/tests/test-clone.t Fri Oct 26 14:37:03 2012 +0200 +++ b/tests/test-clone.t Fri Oct 26 14:53:31 2012 +0200 @@ -509,6 +509,7 @@ $ hg clone . ../i updating to branch default 2 files updated, 0 files merged, 0 files removed, 0 files unresolved + active bookmark: @ $ hg id -i ../i a7949464abda