Mercurial > public > mercurial-scm > hg
diff mercurial/hg.py @ 9714:2f1ab7f77ddc
clone: add option -u/--updaterev
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Thu, 05 Nov 2009 11:05:13 +0100 |
parents | a3d73b3e1f8a |
children | 75520c24feda |
line wrap: on
line diff
--- 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