[PATCH] diff: make diff -c aware of revision sets
steve at borho.org
steve at borho.org
Mon Mar 14 18:12:01 UTC 2011
# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1300126286 18000
# Node ID 10b27553c6734ddf401a03c2a965660b9c07adab
# Parent fac040b7e82277b765dfeb46561e130f8c63ed3e
diff: make diff -c aware of revision sets
diff -r fac040b7e822 -r 10b27553c673 mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1595,7 +1595,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)
More information about the Mercurial-devel
mailing list