Matt Mackall
2f9b02c62d
replace util.sort with sorted built-in
...
This is marginally faster for small and moderately-sized lists
2009-04-26 16:50:44 -05:00
Martin Geisler
52ce98c9a8
help texts: write command line switches as -a/--abc
2009-04-18 14:40:21 +02:00
Patrick Mezard
629f02e472
purge: fix 7625ece8e2f7 (remove read-only files)
...
- use try/except to avoid unnecessary work
- edit only mode bits
2009-04-11 00:13:18 +02:00
Patrick Mezard
229740c001
purge: remove read-only files under Windows (issue583)
...
Initial version by Benoit Boissinot <bboissin@gmail.com>
2009-04-10 21:20:28 +02:00
Martin Geisler
231b907d02
purge: word-wrap help texts at 70 characters
2009-04-04 23:18:51 +02:00
Benjamin Pollack
3d7cb92dd9
1 file changed, 7 insertions(+), 9 deletions(-)
...
hgext/purge.py | 16 +++++++---------
purge: clarify behavior with regard to ignored files
The purge documentation previously said that purge would delete ignored
files. This is only true if purge is passed the --all option, which is
now stated explicitly. A few trivial grammar errors were also fixed.
2009-01-05 12:48:20 -05:00
Martin Geisler
336bd98e22
use repo.wjoin(f) instead of os.path.join(repo.root, f)
2009-01-02 22:53:33 +01:00
Benoit Boissinot
ea7fe6dacc
remove unused variables
2008-10-28 19:25:26 +01:00
Matt Mackall
a65ef7bc5d
util: add sort helper
2008-06-27 18:28:45 -05:00
Matt Mackall
8e1dce7068
purge: cleanup
...
- remove casefolding check, no longer needed
- fold error function into remove
- simplify eol logic
- remove force logic and parameters
2008-06-26 18:44:54 -05:00
Matt Mackall
89dadf7a3b
purge: use status
2008-06-26 14:35:50 -05:00
Matt Mackall
b2155285a8
rename checkfolding to checkcase
2008-06-26 13:58:24 -05:00
Matt Mackall
fb88571d19
match: remove files arg from repo.status and friends
2008-05-12 11:37:08 -05:00
Matt Mackall
a4bb4bf5d0
purge: remove unused 'missing' logic
2008-05-12 11:37:08 -05:00
Matt Mackall
b4d6b6c45b
walk: use match.dir in statwalk
2008-05-12 11:37:08 -05:00
Matt Mackall
e02d6f5a75
walk: remove remaining users of cmdutils.matchpats
2008-05-12 11:37:07 -05:00
Matt Mackall
aba3b21edd
purge: use cmdutil.matchpats
2008-05-12 11:37:07 -05:00
Matt Mackall
0746f88f16
purge: eliminate dopurge
2008-05-12 11:37:07 -05:00
Joel Rosdahl
4f8012378a
Remove unused imports
2008-03-06 22:23:41 +01:00
Alexis S. L. Carvalho
c4d02f3fdf
purge: simplify safety net for case mangling filesystems
...
Relying on the exact return of statwalk would cause us to abort
when there was at least one tracked file inside an ignored directory.
This patch forces an extra walk of the whole working directory even
on sane filesystems, where it wouldn't be needed.
Fixes issue621.
2007-11-09 20:21:35 -02:00
Benoit Boissinot
ce6a51c4eb
refactor options from cmdtable
...
- add extracommitopts for user and date
- factor stuff
2007-08-08 12:27:20 +02:00
Thomas Arendsen Hein
d9d3256252
removed trailing whitespace
2007-07-21 10:30:51 +02:00
Emanuele Aina
a6db33bd4a
purge: add the clean alias inspired by git-clean and svn-clean
2007-06-23 22:26:22 -05:00
Emanuele Aina
5968bafc17
purge: don't delete ignored files if --all is not specified
2007-06-06 22:17:35 +02:00
Thomas Arendsen Hein
49220695bc
Removed trailing whitespace and tabs from python files
2007-06-06 20:22:52 +02:00
Emanuele Aina
92444d96b1
purge: add --include and --exclude options
2007-05-11 17:05:44 +02:00
Emanuele Aina
c4577db686
Move back the purge extension in hgext
2007-02-27 09:05:36 +01:00