logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [issue42] add a global option to start running commands fromrepo root: msg#00521

Subject: Re: [issue42] add a global option to start running commands fromrepo root
Benoit Boissinot wrote:

So, if anyone has strong objections to:

hg status -> tree-wide
hg status . -> current directory and below (current hg status) hg
diff -> tree-wide hg diff . -> current directory and below (current
hg status)
Support, I like this behavior.
Me too.

so commit, status, diff are consistent.
I'd also like to talk about "hg revert",
I feels it is too dangerous if having the same behaviour.
current behavious is not consistent and also not safe.
So how about for "hg revert", it just show the files that will be reverted
in the whole repository and "hg revert -f" to do the real revert.
If files are specified in the command line, then "-f" can be omitted.
Doing hg status before revert will give the same result (if you don't
use revert -r).
Yes, but revert discards your data that you probably will not be able to recover. So it IMHO warrants some "obstacles"...
OTOH wouldn't update -C give you the same thing as tree-wide revert?

Zbynek

--
http://zw.matfyz.cz/     http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic



<Prev in Thread] Current Thread [Next in Thread>