Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/hg.py Mon Oct 01 23:11:28 2012 -0500 +++ b/mercurial/hg.py Tue Oct 02 09:26:42 2012 +0200 @@ -410,6 +410,8 @@ bn = destrepo[uprev].branch() destrepo.ui.status(_("updating to branch %s\n") % bn) _update(destrepo, uprev) + if update in destrepo._bookmarks: + bookmarks.setcurrent(destrepo, update) return srcpeer, destpeer finally: