diff mercurial/patch.py @ 3899:504dee0abeac

Make sequence number on hg export start at 1 (as documented for %n). Add test.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 15 Dec 2006 19:09:10 +0100
parents 9e248cfd8b94
children 2b3175acb653
line wrap: on
line diff
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -656,7 +656,7 @@ def export(repo, revs, template='hg-%h.p
             fp.close()
 
     for seqno, cset in enumerate(revs):
-        single(cset, seqno, fp)
+        single(cset, seqno+1, fp)
 
 def diffstat(patchlines):
     fd, name = tempfile.mkstemp(prefix="hg-patchbomb-", suffix=".txt")