diff: make diff -c aware of revision sets
authorSteve Borho <steve@borho.org>
Mon, 14 Mar 2011 13:11:26 -0500
changeset 13639 595dba23d337
parent 13638 72040d98ff0a
child 13640 19f8629ea107
child 13649 328ce8a405ac
diff: make diff -c aware of revision sets
mercurial/commands.py
--- 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)