changeset 13639 | 595dba23d337 |
parent 13623 | 0e217d479c16 |
child 13644 | 7e6c2f58ad56 |
--- a/mercurial/commands.py Mon Mar 14 15:19:58 2011 +0100 +++ b/mercurial/commands.py Mon Mar 14 13:11:26 2011 -0500 @@ -1618,7 +1618,7 @@ msg = _('cannot specify --rev and --change at the same time') raise util.Abort(msg) elif change: - node2 = repo.lookup(change) + node2 = cmdutil.revsingle(repo, change, None).node() node1 = repo[node2].parents()[0].node() else: node1, node2 = cmdutil.revpair(repo, revs)