Show More
@@ -95,9 +95,10 b' def purge(ui, repo, *dirs, **opts):' | |||
|
95 | 95 | else: |
|
96 | 96 | ui.write('%s%s' % (name, eol)) |
|
97 | 97 | |
|
98 | directories = [] | |
|
99 | 98 | match = scmutil.match(repo[None], dirs, opts) |
|
100 | match.explicitdir = match.traversedir = directories.append | |
|
99 | if removedirs: | |
|
100 | directories = [] | |
|
101 | match.explicitdir = match.traversedir = directories.append | |
|
101 | 102 | status = repo.status(match=match, ignored=opts['all'], unknown=True) |
|
102 | 103 | |
|
103 | 104 | if removefiles: |
General Comments 0
You need to be logged in to leave comments.
Login now