Commit Graph

18 Commits

Author SHA1 Message Date
Patrick Mezard
6815e3dc8d windows: fix unlink() not dropping empty tree (issue1861) 2009-10-08 23:32:36 +02:00
Florent Guillaume
d5f64814b4 test-remove: make tests really pass
Ah, the joys of cross-platform shell scripting...
2008-03-23 01:13:56 +01:00
Florent Guillaume
8a0668790f test-remove: fix for non-gnu find 2008-03-23 01:04:51 +01:00
Florent Guillaume
37434df8b2 test-remove: make it pass on Mac OS X 10.5 2008-03-22 21:13:22 +01:00
Dirkjan Ochtman
2778ac21ea improved semantics for remove (issue438)
- Added files are never deleted (only removed with --force).
- Modified files can only be removed with --force.
- With --after, only deleted files are removed.
- With --after --force, all files are removed but not deleted.
2008-03-22 10:07:49 +01:00
Brendan Cully
46c9d09fa2 Also restore old rm -A behavior for inexact patterns 2007-04-30 09:32:44 -07:00
Brendan Cully
9759da5859 Fix rm -A with no patterns, which I just broke. 2007-04-30 09:13:27 -07:00
Brendan Cully
bd110b0cd3 Make rm --after simply mark files as removed, unless --force is also given 2007-04-30 08:51:59 -07:00
Stephen Darnell
a808384cf1 Add -D/--nodates options to hg diff/export that removes dates from diff headers
and replace uses of sed in the tests with --nodates.
2006-09-26 00:05:24 +01:00
Vadim Gelfer
38dd424903 revert: require --all to revert all files. 2006-08-21 09:44:52 -07:00
Vadim Gelfer
a7019f377d remove: rewrite to be ~400x faster, bit more friendly
old remove code called localrepo.changes for each file.
was very expensive:

  $ hg --time rm arch>/dev/null
  Time: real 1066.120 secs (user 1014.450+0.000 sys 18.090+0.000)

new code, same files:

  $ hg --time rm arch>/dev/null
  Time: real 2.770 secs (user 2.190+0.000 sys 0.580+0.000)

also mention "-f" if not removing files. also allow "-f" to forget
added files.

make test a bit better.
2006-05-18 13:48:12 -07:00
Vadim Gelfer
fe13882a8a make test-remove check some more cases. 2006-05-02 21:45:53 -07:00
TK Soh
d55c1834ad change default strftime format for better portability
On some systems, such as Solaris and HP-UX, "%c" format
give output without the leading zero on the single-digit
month-day.
2006-03-14 22:01:30 -08:00
Thomas Arendsen Hein
9fbdb4124b Make test-remove portable for strange strftime implementations (second try).
I forgot to replace the date output for 'hg log -p', too.
2006-03-13 13:19:23 +01:00
Thomas Arendsen Hein
42cd9f80bb Make test-remove portable for strange strftime implementations. 2006-03-13 13:08:31 +01:00
Thomas Arendsen Hein
1b244c77c7 Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Some systems show "Thu Jan 01" instead of "Thu Jan  1", which breaks tests.
Using "1000000" yields "Mon Jan 12 13:46:40 1970", which looks the same on
all systems.
2006-03-13 13:05:41 +01:00
Benoit Boissinot
d6b2c24c69 hg log -p should show file deletions 2005-12-14 20:53:45 -06:00
mpm@selenic.com
2f37b22b2b Add a simple remove test 2005-08-17 12:26:06 -08:00