equal
deleted
inserted
replaced
318 404 Unsupported archive type: None |
318 404 Unsupported archive type: None |
319 |
319 |
320 $ TIP=`hg id -v | cut -f1 -d' '` |
320 $ TIP=`hg id -v | cut -f1 -d' '` |
321 $ QTIP=`hg id -q` |
321 $ QTIP=`hg id -q` |
322 $ cat > getarchive.py <<EOF |
322 $ cat > getarchive.py <<EOF |
323 > from __future__ import absolute_import |
|
324 > import os |
323 > import os |
325 > import sys |
324 > import sys |
326 > from mercurial import ( |
325 > from mercurial import ( |
327 > util, |
326 > util, |
328 > ) |
327 > ) |
453 > echo "extension $ext was not autodetected." |
452 > echo "extension $ext was not autodetected." |
454 > fi |
453 > fi |
455 > done |
454 > done |
456 |
455 |
457 $ cat > md5comp.py <<EOF |
456 $ cat > md5comp.py <<EOF |
458 > from __future__ import absolute_import, print_function |
|
459 > import hashlib |
457 > import hashlib |
460 > import sys |
458 > import sys |
461 > f1, f2 = sys.argv[1:3] |
459 > f1, f2 = sys.argv[1:3] |
462 > h1 = hashlib.md5(open(f1, 'rb').read()).hexdigest() |
460 > h1 = hashlib.md5(open(f1, 'rb').read()).hexdigest() |
463 > h2 = hashlib.md5(open(f2, 'rb').read()).hexdigest() |
461 > h2 = hashlib.md5(open(f2, 'rb').read()).hexdigest() |
615 $ hg init repo |
613 $ hg init repo |
616 $ echo a > repo/a |
614 $ echo a > repo/a |
617 $ hg -R repo add repo/a |
615 $ hg -R repo add repo/a |
618 $ hg -R repo commit -m '#0' -d '456789012 21600' |
616 $ hg -R repo commit -m '#0' -d '456789012 21600' |
619 $ cat > show_mtime.py <<EOF |
617 $ cat > show_mtime.py <<EOF |
620 > from __future__ import absolute_import, print_function |
|
621 > import os |
618 > import os |
622 > import sys |
619 > import sys |
623 > print(int(os.stat(sys.argv[1]).st_mtime)) |
620 > print(int(os.stat(sys.argv[1]).st_mtime)) |
624 > EOF |
621 > EOF |
625 |
622 |