mercurial/cmdutil.py
changeset 21578 7cfe51661e98
parent 21577 c62c5ce750ee
child 21579 87a972b5c039
equal deleted inserted replaced
21577:c62c5ce750ee 21578:7cfe51661e98
  2296         # get the list of subrepos that must be reverted
  2296         # get the list of subrepos that must be reverted
  2297         targetsubs = sorted(s for s in ctx.substate if m(s))
  2297         targetsubs = sorted(s for s in ctx.substate if m(s))
  2298 
  2298 
  2299         # Find status of all file in `names`. (Against working directory parent)
  2299         # Find status of all file in `names`. (Against working directory parent)
  2300         m = scmutil.matchfiles(repo, names)
  2300         m = scmutil.matchfiles(repo, names)
  2301         changes = repo.status(match=m)[:4]
  2301         changes = repo.status(node1=parent, match=m)[:4]
  2302         modified, added, removed, deleted = map(set, changes)
  2302         modified, added, removed, deleted = map(set, changes)
  2303 
  2303 
  2304         # if f is a rename, update `names` to also revert the source
  2304         # if f is a rename, update `names` to also revert the source
  2305         cwd = repo.getcwd()
  2305         cwd = repo.getcwd()
  2306         for f in added:
  2306         for f in added: