# HG changeset patch # User timeless@mozdev.org # Date 1256118088 -10800 # Node ID 02f40b2ece3f1b607593a340fdd711919f4a8042 # Parent c6b721da201b76c7e753b40b5bddfa9d30465899 commands: use rev from remote repo when updating as part of a pull diff -r c6b721da201b -r 02f40b2ece3f mercurial/commands.py --- a/mercurial/commands.py Wed Oct 21 12:03:14 2009 +0300 +++ b/mercurial/commands.py Wed Oct 21 12:41:28 2009 +0300 @@ -2308,6 +2308,8 @@ 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):