equal
deleted
inserted
replaced
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: |