Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
17755:bededd3f0735 | 17756:92980a8dfdfe |
---|---|
407 destrepo.ui.setconfig('paths', 'default', defaulturl) | 407 destrepo.ui.setconfig('paths', 'default', defaulturl) |
408 | 408 |
409 if update: | 409 if update: |
410 if update is not True: | 410 if update is not True: |
411 checkout = srcpeer.lookup(update) | 411 checkout = srcpeer.lookup(update) |
412 for test in (checkout, 'default', 'tip'): | 412 for test in (checkout, '@', 'default', 'tip'): |
413 if test is None: | 413 if test is None: |
414 continue | 414 continue |
415 try: | 415 try: |
416 uprev = destrepo.lookup(test) | 416 uprev = destrepo.lookup(test) |
417 break | 417 break |