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

r10775:c5205761 stable
r12319:381f1312 stable
Show More
test-mq-merge.out
53 lines | 1.1 KiB | text/plain | TextLexer
/ tests / test-mq-merge.out
Patrick Mezard
Add test for issue 529 - "mq aborts when merging patch deleting files".
r4333 adding a
adding b
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
M b
Dirkjan Ochtman
warn about new heads on commit (issue842)
r6336 created new head
Patrick Mezard
Add test for issue 529 - "mq aborts when merging patch deleting files".
r4333 a
b
applying rm_a
Martin Geisler
mq: lowercase output...
r7627 now at: rm_a
Patrick Mezard
Add test for issue 529 - "mq aborts when merging patch deleting files".
r4333 b
Mads Kiilerich
mq: qpop now tells which patches are popped...
r9110 popping rm_a
popping .hg.patches.merge.marker
Martin Geisler
mq: lowercase output...
r7627 patch queue now empty
Patrick Mezard
test-mq-merge: test mq merge and explicit patch queue
r6628
% init t2
adding a
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
% create the reference queue
Patrick Mezard
mq: preserve --git flag when merging patches...
r10185 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
Patrick Mezard
test-mq-merge: test mq merge and explicit patch queue
r6628 % merge
merging with queue at refqueue
applying patcha
Patrick Mezard
mq: preserve --git flag when merging patches...
r10185 patching file a
Hunk #1 FAILED at 0
1 out of 1 hunks FAILED -- saving rejects to file a.rej
patch failed, unable to continue (try -v)
patch failed, rejects left in working dir
patch didn't work out, merging patcha
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
0 files updated, 2 files merged, 0 files removed, 0 files unresolved
(branch merge, don't forget to commit)
applying patcha2
now at: patcha2
% check patcha is still a git patch
Steve Losh
mq: add parent node IDs to MQ patches on qrefresh/qnew...
r10397 # HG changeset patch
# Parent d3873e73d99ef67873dac33fbcc66268d5d2b6f4
Patrick Mezard
mq: preserve --git flag when merging patches...
r10185 diff --git a/a b/a
--- a/a
+++ b/a
@@ -1,1 +1,2 @@
-b
+a
+c
diff --git a/a b/aa
copy from a
copy to aa
--- a/a
+++ b/aa
@@ -1,1 +1,1 @@
-b
+a
% check patcha2 is still a regular patch