##// END OF EJS Templates
status: support revsets with --change
Patrick Mezard -
r15578:db0e277b default
parent child Browse files
Show More
@@ -5174,7 +5174,7 b' def status(ui, repo, *pats, **opts):'
5174 msg = _('cannot specify --rev and --change at the same time')
5174 msg = _('cannot specify --rev and --change at the same time')
5175 raise util.Abort(msg)
5175 raise util.Abort(msg)
5176 elif change:
5176 elif change:
5177 node2 = repo.lookup(change)
5177 node2 = scmutil.revsingle(repo, change, None).node()
5178 node1 = repo[node2].p1().node()
5178 node1 = repo[node2].p1().node()
5179 else:
5179 else:
5180 node1, node2 = scmutil.revpair(repo, revs)
5180 node1, node2 = scmutil.revpair(repo, revs)
@@ -263,9 +263,9 b' hg status -C --change 1 added modified c'
263 modified
263 modified
264 R removed
264 R removed
265
265
266 hg status -A --change 1:
266 hg status -A --change 1 and revset:
267
267
268 $ hg status -A --change 1
268 $ hg status -A --change '1|1'
269 M modified
269 M modified
270 A added
270 A added
271 A copied
271 A copied
General Comments 0
You need to be logged in to leave comments. Login now