hg export %n off-by-one
Johannes Stezenbach
js at linuxtv.org
Fri Dec 15 17:21:54 UTC 2006
Hi,
it's not important, but I just noticed that export template %n
generates numbers starting at 0, which disagrees with help output.
Also, ISTR that %r used to produce minimally zero-padded numbers,
not 00000000000000000001 etc.
$ hg -q version
Mercurial Distributed SCM (version 070628929e1f)
$ hg help export
...
%n zero-padded sequence number, starting at 1
%r zero-padded changeset revision number
...
$ hg -v export -o p/%n.patch 1:
p/00.patch
p/01.patch
p/02.patch
...
$ hg -v export -o p/%r.patch 1:
p/00000000000000000001.patch
p/00000000000000000002.patch
p/00000000000000000003.patch
...
Thanks,
Johannes
More information about the Mercurial
mailing list