[PATCH] hg status -0 implies -n
Jeremy Fitzhardinge
jeremy at goop.org
Thu Jun 22 20:55:20 CDT 2006
There's no point in putting a status prefix when using -0, since the
output is intended for consumption by xargs.
diff -r 730b4faa4764 mercurial/commands.py
--- a/mercurial/commands.py Wed Jun 21 17:06:17 2006 -0700
+++ b/mercurial/commands.py Thu Jun 22 18:53:28 2006 -0700
@@ -2622,7 +2622,7 @@ def status(ui, repo, *pats, **opts):
for opt, char, changes in ([ct for ct in changetypes if opts[ct[0]]]
or changetypes):
- if opts['no_status']:
+ if opts['no_status'] or opts['print0']:
format = "%%s%s" % end
else:
format = "%s %%s%s" % (char, end)
More information about the Mercurial
mailing list