Scope of operations

James Blackwell jblack at merconline.com
Tue Oct 25 08:55:31 BST 2005


On Tue, Oct 18, 2005 at 09:42:11PM +0200, Mark Rosenstand wrote:
> On Tue, 18 Oct 2005 18:07:11 +0200, Erik Bågfors wrote:
> > Please don't do that. This is one of the most confusing things about
> > svn for example.  I do a svn log and only get the log from cwd and
> > down.
> 
> This is how most UNIX programs work. If no argument is given, then the
> cwd is assumed.

Gnuarch worked this way for a while. It was confusing as hell for a _lot_
of users. They would do something like: 

$ cd project/lib
[hack hack hack]
$ tla status
M  project/lib/file
M  project/lib/file2
$ tla commit -s "Fixed the library"
M  project/lib/file
M  project/lib/file2
M  projects/docs/filea

"Gah! I didn't know those other changes were here!"

Now, in all fairness, the real problem was in status (which may have been
a different command, actually) and commit behaving differently.

Regardless, we get to serve both sets of users ("whole tree" vs. "here
down") by burdening the "here down" set with two extra characters. 

> > A better thing would be "bzr status [dir]".  So if you do "bzr status
> > ." or "bzr log ." you get the behavor you want.
> 
> This is how it works now. It just feels awkward to me, but maybe that's
> because I'm used to svn.

That's my guess. I suspect that you're suffering from temporary finger
memory.





More information about the bazaar mailing list