# HG changeset patch # User Patrick Mezard # Date 1322131096 -3600 # Node ID db0e277bdd37ff0014afb9ab89afe176557def53 # Parent ad686c818e1c7d5ed0335327321003ba8ea04664 status: support revsets with --change diff -r ad686c818e1c -r db0e277bdd37 mercurial/commands.py --- 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) diff -r ad686c818e1c -r db0e277bdd37 tests/test-status.t --- a/tests/test-status.t Fri Nov 25 02:11:12 2011 +0100 +++ b/tests/test-status.t Thu Nov 24 11:38:16 2011 +0100 @@ -263,9 +263,9 @@ modified R removed -hg status -A --change 1: +hg status -A --change 1 and revset: - $ hg status -A --change 1 + $ hg status -A --change '1|1' M modified A added A copied