mercurial/hg.py
changeset 9714 2f1ab7f77ddc
parent 9611 a3d73b3e1f8a
child 9788 75520c24feda
--- a/mercurial/hg.py	Thu Nov 05 11:07:01 2009 +0100
+++ b/mercurial/hg.py	Thu Nov 05 11:05:13 2009 +0100
@@ -309,6 +309,8 @@
             if update:
                 if update is not True:
                     checkout = update
+                    if src_repo.local():
+                        checkout = src_repo.lookup(update)
                 for test in (checkout, 'default', 'tip'):
                     if test is None:
                         continue