diff mercurial/hg.py @ 17756:92980a8dfdfe

clone: update to @ bookmark if it exists
author Kevin Bullock <kbullock@ringworld.org>
date Wed, 21 Mar 2012 16:53:39 -0500
parents e6067bec18da
children b32e55e6c3c7
line wrap: on
line diff
--- a/mercurial/hg.py	Fri Aug 10 20:37:20 2012 +0100
+++ b/mercurial/hg.py	Wed Mar 21 16:53:39 2012 -0500
@@ -409,7 +409,7 @@
             if update:
                 if update is not True:
                     checkout = srcpeer.lookup(update)
-                for test in (checkout, 'default', 'tip'):
+                for test in (checkout, '@', 'default', 'tip'):
                     if test is None:
                         continue
                     try: