Mercurial > hg > mercurial-crew-with-dirclash
comparison purge.py @ 2370:de893ad6bd17
Command line options are read in a saner way
author | demian@gaudron.lan |
---|---|
date | Tue, 16 May 2006 13:40:45 +0200 |
parents | 9da3dd62c827 |
children | e39300cdb8ff |
comparison
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 = { |