hg add default behaviour...

Brian Baker brian_e_baker at yahoo.com
Sun Aug 26 09:02:44 CDT 2007


Hello All,

Thanks to all the people who have contacted me, not sure if they're
going to the list too as I get the disgest.

For my purposes the simplest suggestion is probably the best, that is
to add.

[syntax: glob]
*
To .hgignore, thanks Benoit.

I guess I should have said that I'm working on Windows, although there
is cygwin and the rest Window is not a rich command line environment.

Apart from ignoring everything, I think the best alternative for me
would be to do a commit after every add, then I could use hg revert
-all
to deal with the inevitable typos.

I still think that add's behaviour with no arguments is a little
dangerous, and to people on window who don't get by default a decent
suite of command line tools in order to munge appropriately i.e.
hg status -a | cut -c 3- | xargs hg revert
(thanks Giorgos)
Its going to be painful to recover.

Just a add command specific way of configuring a default behaviour for
add with no arguments is one option. The other being Guido's suggestion
of a safer mode, but I'm not sure what this would effect other than
add.

Brian




      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 


More information about the Mercurial mailing list