diff mercurial/commands.py @ 15578:db0e277bdd37

status: support revsets with --change
author Patrick Mezard <pmezard@gmail.com>
date Thu, 24 Nov 2011 11:38:16 +0100
parents a84698badf0b
children 5a7733563c2e
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Nov 25 02:11:12 2011 +0100
+++ b/mercurial/commands.py	Thu Nov 24 11:38:16 2011 +0100
@@ -5174,7 +5174,7 @@
         msg = _('cannot specify --rev and --change at the same time')
         raise util.Abort(msg)
     elif change:
-        node2 = repo.lookup(change)
+        node2 = scmutil.revsingle(repo, change, None).node()
         node1 = repo[node2].p1().node()
     else:
         node1, node2 = scmutil.revpair(repo, revs)