changeset 13639:595dba23d337

diff: make diff -c aware of revision sets
author Steve Borho <steve@borho.org>
date Mon, 14 Mar 2011 13:11:26 -0500
parents 72040d98ff0a
children 19f8629ea107 328ce8a405ac
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)