purge.py
changeset 2370 de893ad6bd17
parent 2369 9da3dd62c827
child 2371 e39300cdb8ff
equal deleted inserted replaced
2369:9da3dd62c827 2370:de893ad6bd17
   134 
   134 
   135     Be careful with purge, you could irreversibly delete some files you
   135     Be careful with purge, you could irreversibly delete some files you
   136     forgot to add to the repository. If you only want to print the list of
   136     forgot to add to the repository. If you only want to print the list of
   137     files that this program would delete use the -vn options.
   137     files that this program would delete use the -vn options.
   138     '''
   138     '''
   139     act = True
   139     act = bool(opts['nothing'])
   140     if opts['nothing']:
   140     abort_on_err = bool(opts['abort_on_err'])
   141         act = False
       
   142 
       
   143     abort_on_err = True
       
   144     if not opts['abort_on_err']:
       
   145         abort_on_err = False
       
   146 
       
   147     p = Purge(act, abort_on_err)
   141     p = Purge(act, abort_on_err)
   148     p.purge(ui, repo, paths)
   142     p.purge(ui, repo, paths)
   149 
   143 
   150 
   144 
   151 cmdtable = {
   145 cmdtable = {