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	Thu Dec 14 19:30:18 2006 +0100
+++ b/mercurial/patch.py	Fri Dec 15 19:09:10 2006 +0100
@@ -656,7 +656,7 @@
             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")