Like Bill and others I'm trying to work out out to get the
equivalent output to putback -n, or better yet for my uses, wx list -p.
That gets me just the list of files that I would be integrating. Or
as I like to think of it my working set.
I do things like this with that working set:
$ gvim `wx list`
$ ctags `wx list`
$ cscope `wx list`
and lots of other uses like that where I just want the list of files
I'm working on and nothing else.
On of the things I'm finding difficult to deal with for Mercurial
is the way it attempts to track any new file in the repository. This
means that the default output for hg status is very verbose because it
contains all of the generated files, including the full proto area.
hgignore(5) can help with this a little, so I started with a .hgignore
file that has just 'proto' in it. Then I discovered I also needed to
ignore other build artifacts like the '.make.state' files. However even
having just run 'make setup' this leaves a lot of stuff in $SRC/tools
and even some stuff in $SRC/head. Now the generated stuff in $SRC/head
is IMO a bug that should be getting generated into $PROTO/usr/include
even if it is stuff we don't ship in a package.
The other thing that really bothers me is that after I've done an 'hg
commit' (which I think of like wx delget) 'hg status' output is
different this is where like Bill I'm missing the putback -n style of
output.
It appears there might be some scope for using styles to change the
output of 'hg out' here is my first, very little testing, output
for 'wx list' like output:
header = ''
header_verbose = ''
changeset = '{files}'
file = '{file}\n'
last_file = '{file}\n'
file_add = '{file_add}\n'
last_file_add = '{file_add}\n'
file_del = '{file_del}\n'
last_file_del = '{file_del}\n'
Save this as a file, eg /tmp/wxlist then run
$ hg out --style /tmp/wxlist -q
and you will get wx list like output.
For those that don't know I'm trying to port webrev(1) to Mercurial and
have an almost working port (see http://blogs.sun.com/darren for my
last attempt).
--
Darren J Moffat
_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org