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

r4659:7a7d4937 default
r12319:381f1312 stable
Show More
test-up-local-change
68 lines | 871 B | text/plain | TextLexer
/ tests / test-up-local-change
Thomas Arendsen Hein
Remove bashisms and use /bin/sh instead of /bin/bash....
r544 #!/bin/sh
mpm@selenic.com
Add a simple testing framework...
r331
Alexis S. L. Carvalho
change tests to use simplemerge by default
r4365 HGMERGE=true; export HGMERGE
Thomas Arendsen Hein
Don't use 'set -x', fix exports, sed and hexdump usage for Solaris.
r800 set -e
mpm@selenic.com
Add a simple testing framework...
r331 mkdir r1
cd r1
hg init
echo a > a
hg addremove
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "1" -d "1000000 0"
mpm@selenic.com
Add a simple testing framework...
r331
mpm@selenic.com
[PATCH] add clone command...
r485 hg clone . ../r2
cd ../r2
mpm@selenic.com
Add a simple testing framework...
r331 hg up
echo abc > a
Stephen Darnell
Add -D/--nodates options to hg diff/export that removes dates from diff headers...
r3199 hg diff --nodates
mpm@selenic.com
Add a simple testing framework...
r331
cd ../r1
echo b > b
echo a2 > a
hg addremove
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "2" -d "1000000 0"
mpm@selenic.com
Add a simple testing framework...
r331
cd ../r2
hg -q pull ../r1
hg status
Benoit Boissinot
abort when using 'update -m' and this is not a merge...
r1674 hg parents
mpm@selenic.com
options: kill -d for debug...
r591 hg --debug up
Benoit Boissinot
abort when using 'update -m' and this is not a merge...
r1674 hg parents
hg --debug up 0
hg parents
Vadim Gelfer
deprecate 'update -m'. use 'merge' instead.
r2283 hg --debug merge || echo failed
Benoit Boissinot
abort when using 'update -m' and this is not a merge...
r1674 hg parents
hg --debug up
mpm@selenic.com
Add a simple testing framework...
r331 hg parents
hg -v history
Stephen Darnell
Add -D/--nodates options to hg diff/export that removes dates from diff headers...
r3199 hg diff --nodates
mpm@selenic.com
Add a simple testing framework...
r331
Benoit Boissinot
abort when using 'update -m' and this is not a merge...
r1674 # create a second head
cd ../r1
hg up 0
echo b2 > b
echo a3 > a
hg addremove
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "3" -d "1000000 0"
Benoit Boissinot
abort when using 'update -m' and this is not a merge...
r1674
cd ../r2
hg -q pull ../r1
hg status
hg parents
hg --debug up || echo failed
Vadim Gelfer
deprecate 'update -m'. use 'merge' instead.
r2283 hg --debug merge || echo failed
hg --debug merge -f
Benoit Boissinot
abort when using 'update -m' and this is not a merge...
r1674 hg parents
Stephen Darnell
Add -D/--nodates options to hg diff/export that removes dates from diff headers...
r3199 hg diff --nodates
Benoit Boissinot
fix update when a locally added file match the target revision...
r2065
# test a local add
cd ..
hg init a
hg init b
echo a > a/a
echo a > b/a
hg --cwd a commit -A -m a
cd b
Thomas Arendsen Hein
Kill trailing spaces
r4659 hg add a
Benoit Boissinot
fix update when a locally added file match the target revision...
r2065 hg pull -u ../a
hg st