mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
purge: remove unused 'missing' logic
This commit is contained in:
parent
48d9afe7e5
commit
a4bb4bf5d0
@ -84,14 +84,11 @@ def purge(ui, repo, *dirs, **opts):
|
||||
|
||||
directories = []
|
||||
files = []
|
||||
missing = []
|
||||
match = cmdutil.match(repo, dirs, opts)
|
||||
match.dir = directories.append
|
||||
for src, f, st in repo.dirstate.statwalk(match.files(), match,
|
||||
ignored=ignored):
|
||||
if src == 'm':
|
||||
missing.append(f)
|
||||
elif src == 'f' and f not in repo.dirstate:
|
||||
if src == 'f' and f not in repo.dirstate:
|
||||
files.append(f)
|
||||
|
||||
directories.sort()
|
||||
|
Loading…
Reference in New Issue
Block a user