##// END OF EJS Templates
archive: make the %r escape work.
Alexis S. L. Carvalho -
r4836:0e2d0a78 default
parent child Browse files
Show More
@@ -542,9 +542,9 b' def make_filename(repo, pat, node,'
542 542 try:
543 543 if node:
544 544 expander.update(node_expander)
545 if node and revwidth is not None:
545 if node:
546 546 expander['r'] = (lambda:
547 str(repo.changelog.rev(node)).zfill(revwidth))
547 str(repo.changelog.rev(node)).zfill(revwidth or 0))
548 548 if total is not None:
549 549 expander['N'] = lambda: str(total)
550 550 if seqno is not None:
@@ -63,3 +63,7 b' hg archive -t zip -r 2 test.zip'
63 63 unzip -t test.zip
64 64
65 65 hg archive -t tar - | tar tf - | sed "s/$QTIP/TIP/"
66 hg archive -r 0 -t tar rev-%r.tar
67 if [ -f rev-0.tar ]; then
68 echo 'rev-0.tar created'
69 fi
@@ -38,3 +38,4 b' test-TIP/.hg_archival.txt'
38 38 test-TIP/bar
39 39 test-TIP/baz/bletch
40 40 test-TIP/foo
41 rev-0.tar created
General Comments 0
You need to be logged in to leave comments. Login now