##// 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:

r9599:f3404b7f merge default
r12319:381f1312 stable
Show More
test-mq-qpush-fail.out
38 lines | 987 B | text/plain | TextLexer
/ tests / test-mq-qpush-fail.out
Alexis S. L. Carvalho
mq: test that qpush cleans things up when it fails
r4658 adding foo
Adrian Buehlmann
mq: eliminate warning on qpush with empty series...
r8795 % test qpush on empty series
no patches in series
Mads Kiilerich
mq: qpop now tells which patches are popped...
r9110 popping bad-patch
popping patch2
popping patch1
Martin Geisler
mq: lowercase output...
r7627 patch queue now empty
Alexis S. L. Carvalho
mq: test that qpush cleans things up when it fails
r4658 applying patch1
applying patch2
applying bad-patch
transaction abort!
rollback completed
cleaning up working directory...done
abort: decoding near '�': 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)!
changeset: 0:bbd179dfa0a7
tag: tip
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: add foo
% bar should be gone; other unknown/ignored files should still be around
? untracked-file
I .hgignore
Matt Mackall
Backed out changeset c2a21fe60994...
r5764 C foo
Dirkjan Ochtman
mq: fix error message for qpush inexistent-patch (issue1702)
r8875 % preparing qpush of a missing patch
no patches applied
applying patch1
now at: patch1
% now we expect the push to fail, but it should NOT complain about patch1
applying patch2
unable to read patch2
now at: patch1
Benoit Allard
mq: fix traceback for qpush inexistant-patch with no patch applied
r9590 % preparing qpush of missing patch with no patch applied
Martin Geisler
Merge with crew-stable
r9599 popping patch1
Benoit Allard
mq: fix traceback for qpush inexistant-patch with no patch applied
r9590 patch queue now empty
% qpush should fail the same way as below
applying patch1
unable to read patch1