##// END OF EJS Templates
archive: set date to 1980 for very old zip files...
archive: set date to 1980 for very old zip files The zip file format stores the date using "MS-DOS format" which apparently means that they use 1980 as their epoch. Python's zipfile module emits deprecation warnings of this form /usr/lib/python2.6/zipfile.py:1108: DeprecationWarning: struct integer overflow masking is deprecated self.fp.write(zinfo.FileHeader()) /usr/lib/python2.6/zipfile.py:1108: DeprecationWarning: 'H' format requires 0 <= number <= 65535 self.fp.write(zinfo.FileHeader()) /home/mg/src/mercurial-crew/mercurial/archival.py:169: DeprecationWarning: struct integer overflow masking is deprecated self.z.close() /home/mg/src/mercurial-crew/mercurial/archival.py:169: DeprecationWarning: 'H' format requires 0 <= number <= 65535 self.z.close() when it is given such old timestamps. This fixes this by silently clamping the date to 1980.

File last commit:

r8043:b777dd8f default
r12319:381f1312 stable
Show More
test-purge.out
78 lines | 1.6 KiB | text/plain | TextLexer
Emanuele Aina
Add a test for the purge extension
r4145 % init
% setup
% delete an empty directory
empty_dir
Removing directory empty_dir
directory
r1
% delete an untracked directory
untracked_dir/untracked_file1
untracked_dir/untracked_file2
Removing file untracked_dir/untracked_file1
Removing file untracked_dir/untracked_file2
Removing directory untracked_dir
directory
r1
% delete an untracked file
untracked_file
Patrick Mezard
purge: remove read-only files under Windows (issue583)...
r8043 untracked_file_readonly
Emanuele Aina
Add a test for the purge extension
r4145 Removing file untracked_file
Patrick Mezard
purge: remove read-only files under Windows (issue583)...
r8043 Removing file untracked_file_readonly
Emanuele Aina
Add a test for the purge extension
r4145 directory
r1
% delete an untracked file in a tracked directory
directory/untracked_file
Removing file directory/untracked_file
directory
r1
% delete nested directories
untracked_directory/nested_directory
Removing directory untracked_directory/nested_directory
Removing directory untracked_directory
directory
r1
Alexis S. L. Carvalho
purge.py: fix invocation of statwalk
r4155 % delete nested directories from a subdir
untracked_directory/nested_directory
Removing directory untracked_directory/nested_directory
Removing directory untracked_directory
directory
r1
% delete only part of the tree
untracked_directory/nested_directory
Removing directory untracked_directory/nested_directory
Removing directory untracked_directory
directory
r1
directory/untracked_file
Emanuele Aina
purge: don't delete ignored files if --all is not specified
r4691 % skip ignored files if --all not specified
directory
ignored
r1
Emanuele Aina
Add a test for the purge extension
r4145 ignored
Removing file ignored
directory
r1
Emanuele Aina
purge: abort with missing files avoiding problems with name-mangling fs...
r4310 % abort with missing files until we support name mangling filesystems
untracked_file
Matt Mackall
purge: cleanup...
r6757 ! r1
? untracked_file
untracked_file
Emanuele Aina
purge: abort with missing files avoiding problems with name-mangling fs...
r4310 Removing file untracked_file
Matt Mackall
purge: cleanup...
r6757 ! r1
Alexis S. L. Carvalho
purge: simplify safety net for case mangling filesystems...
r5517 % tracked file in ignored directory (issue621)
untracked_file
Removing file untracked_file
Emanuele Aina
purge: add --include and --exclude options
r4463 % skip excluded files
directory
excluded_file
r1
% skip files in excluded dirs
directory
excluded_dir
r1
file
% skip excluded empty dirs
directory
excluded_dir
r1
% skip patterns