comparison mercurial/hg.py @ 17703:4a07d2ff7c66 stable

clone: activate bookmark specified with --updaterev
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 02 Oct 2012 09:26:42 +0200
parents 471f30d360ea
children 3d1a781b23c0
comparison
equal deleted inserted replaced
17698:6647ac9b9044 17703:4a07d2ff7c66
408 except error.RepoLookupError: 408 except error.RepoLookupError:
409 continue 409 continue
410 bn = destrepo[uprev].branch() 410 bn = destrepo[uprev].branch()
411 destrepo.ui.status(_("updating to branch %s\n") % bn) 411 destrepo.ui.status(_("updating to branch %s\n") % bn)
412 _update(destrepo, uprev) 412 _update(destrepo, uprev)
413 if update in destrepo._bookmarks:
414 bookmarks.setcurrent(destrepo, update)
413 415
414 return srcpeer, destpeer 416 return srcpeer, destpeer
415 finally: 417 finally:
416 release(srclock, destlock) 418 release(srclock, destlock)
417 if dircleanup is not None: 419 if dircleanup is not None: