# HG changeset patch # User timeless@mozdev.org # Date 2009-10-21 09:41:28 # Node ID 02f40b2ece3f1b607593a340fdd711919f4a8042 # Parent c6b721da201b76c7e753b40b5bddfa9d30465899 commands: use rev from remote repo when updating as part of a pull diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2308,6 +2308,8 @@ def pull(ui, repo, source="default", **o raise util.Abort(err) modheads = repo.pull(other, heads=revs, force=opts.get('force')) + if checkout: + checkout = str(repo.changelog.rev(other.lookup(checkout))) return postincoming(ui, repo, modheads, opts.get('update'), checkout) def push(ui, repo, dest=None, **opts):