changeset 755:87e2b094ab86

Show filenames for hg export in verbose mode on a separate lines. This makes parsing by external tools much easier.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 22 Jul 2005 07:42:47 +0100
parents 3e73bf876f17
children 5d79dfa5e98f
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Jul 22 07:30:52 2005 +0100
+++ b/mercurial/commands.py	Fri Jul 22 07:42:47 2005 +0100
@@ -562,7 +562,7 @@
                    node=node, total=total, seqno=seqno,
                    revwidth=revwidth)
     if fp != sys.stdout:
-        ui.note("Exporting patch to '%s'.\n" % fp.name)
+        ui.note("%s\n" % fp.name)
 
     fp.write("# HG changeset patch\n")
     fp.write("# User %s\n" % change[1])
@@ -584,6 +584,7 @@
     revs = list(revrange(ui, repo, changesets))
     total = len(revs)
     revwidth = max(len(revs[0]), len(revs[-1]))
+    ui.note(len(revs) > 1 and "Exporting patches:\n" or "Exporting patch:\n")
     for cset in revs:
         seqno += 1
         doexport(ui, repo, cset, seqno, total, revwidth, opts)