logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [issue42] add a global option to start running commands from repo root: msg#00477

Subject: Re: [issue42] add a global option to start running commands from repo root
According to Jeremy Fitzhardinge:
> want.  But at present, if you want to get the status of the whole repo
> regardless of your cwd, there's no clean way to do it; you have to
> determine the path to the top of the repo, and then do 'hg status' on

It is fairly easy:

( cd $(hg root); hg status )

will do what you expect w/o leaving your current dir..

I'm probably used to go to a specific dir and expect the SCM to limit
itself to the sub-tree I've choosen, like cvs/svn.

I'd even say that being able to checkout and work on a sub-tree without too
many hassles is something that makes cvs/svn easy for people.

I'd even dare to say that hg commit should also limit itself to the current
sub-tree but that may be too much :-)  And commit is a bit special and I
can live with its "global"-ness.

YMMV as usual.
-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@xxxxxxxxxxxxxxxxx
Darwin snuadh.freenix.org Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005


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