diff mercurial/hg.py @ 17870:7d2dd10ce9ea stable

clone: activate @ bookmark if updating to it The message "updating bookmark @ failed!" in test-bookmarks-pushpull.t is correct, because the changeset that the @ bookmark points to is not pushed to the target repository.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 26 Oct 2012 14:37:03 +0200
parents c9339efed653
children 52c7e171e355
line wrap: on
line diff
--- a/mercurial/hg.py	Fri Oct 26 13:20:44 2012 +0200
+++ b/mercurial/hg.py	Fri Oct 26 14:37:03 2012 +0200
@@ -418,6 +418,7 @@
                 if uprev is None:
                     try:
                         uprev = destrepo._bookmarks['@']
+                        update = '@'
                     except KeyError:
                         try:
                             uprev = destrepo.branchtip('default')