hgext/purge.py
changeset 22265 fe22d86a8992
parent 21994 c6e1f2c6d5f1
child 22920 e049338d1a7b
equal deleted inserted replaced
22264:4bc1fd86e915 22265:fe22d86a8992
    93                     raise util.Abort(m)
    93                     raise util.Abort(m)
    94                 ui.warn(_('warning: %s\n') % m)
    94                 ui.warn(_('warning: %s\n') % m)
    95         else:
    95         else:
    96             ui.write('%s%s' % (name, eol))
    96             ui.write('%s%s' % (name, eol))
    97 
    97 
    98     directories = []
       
    99     match = scmutil.match(repo[None], dirs, opts)
    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     status = repo.status(match=match, ignored=opts['all'], unknown=True)
   102     status = repo.status(match=match, ignored=opts['all'], unknown=True)
   102 
   103 
   103     if removefiles:
   104     if removefiles:
   104         for f in sorted(status[4] + status[5]):
   105         for f in sorted(status[4] + status[5]):
   105             if act:
   106             if act: