OpenSolaris

Printable Version Enter a New Search
Bug ID 6735422
Synopsis RFE: add template to cdm so that `hg outgoing -v` will list files one-per-line
State 10-Fix Delivered (Fix available in build)
Category:Subcategory consolidation:os-net-tools
Keywords
Responsible Engineer Mark J Nelson
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_101
Fixed In snv_101
Release Fixed solaris_nevada(snv_101)
Related Bugs 6538468
Submit Date 8-August-2008
Last Update Date 22-October-2008
Description
At present, `hg outgoing -v` lists files like this:

---
a b c ...
---

instead of like this:

---
a
b
c
...
---

The current method causes problems, as when the line passes the SMTP line limit (around 1000), sendmail will do this:

... usr/src/pkgdefs/SUNWsd!
 card/postremove ...

I.e., it will insert "!\n " when needed, thus corrupting the output.
This hg stylefile provides reasonably nice output with hg outgoing -v:


--------cut here-------
changeset = 'changeset:   {rev}:{node|short}\n{branches}{tags}{short_parents}user:        {author}\ndate:        {date|date}\ncomments:\n{desc|strip|tabindent}\n\n'
changeset_quiet = '{rev}:{node|short}\n'
changeset_verbose = 'changeset:   {rev}:{node|short}\n{branches}{tags}{parents}{manifest}user:        {author}\ndate:        {date|date}\ncomments:\n\n{desc|strip}\n{files}{file_adds}{file_dels}{file_copies}'
changeset_debug = 'changeset:   {rev}:{node}\n{branches}{tags}{parents}{manifest}user:        {author}\ndate:        {date|date}\ncomments:\n\n{desc|strip}\n{files}{file_adds}{file_dels}{file_copies}{extras}'
start_files = '\nmodified:\n'
file = '{file}\n'
end_files = ''
start_file_adds = 'added:\n'
file_add = '{file_add}\n'
end_file_adds = ''
start_file_dels = 'removed:\n'
file_del = '{file_del}\n'
end_file_dels = ''
start_file_copies = 'copied:\n'
file_copy = '{name} (from {source})\n'
end_file_copies = ''
short_parent = 'parent:      {rev}:{node|short}\n'
parent = 'parent:      {rev}:{node}\n'
manifest = 'manifest:    {rev}:{node}\n'
branch = 'branch:      {branch}\n'
tag = 'tag:         {tag}\n'
extra = 'extra:       {key}={value|stringescape}\n'
--------cut here-------

example output (no tweaking!):

$ hg outgoing -v
running ssh onnv.sfbay "hg -R /export/onnv-clone serve --stdio"
comparing with ssh://onnv.sfbay//export/onnv-clone
searching for changes
changeset:   7304:d079352a77fe
tag:         tip
manifest:    7304:d7e2e12910299c402117779abf24b13e77dcde98
user:        James C. McPherson < xxxxx@xxxxx.COM>
date:        Mon Aug 11 21:14:46 2008 +1000
comments:

6734095 fwflash lint cleanup (common code and ses/sgen plugins)

modified:
usr/src/cmd/fwflash/Makefile.com
usr/src/cmd/fwflash/common/fwflash.c
usr/src/cmd/fwflash/common/fwflash.h
usr/src/cmd/fwflash/plugins/transport/common/ses.c
Work Around
N/A
Comments
N/A