2008/12/11 Colin D Bennett <span dir="ltr"><<a href="mailto:colin@gibibit.com">colin@gibibit.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
These are some thoughts I've had on specifying the subject branch or<br>
tree to bzr commands.<br>
<br>
I've noticed that besides the 'revision-info' command, for which I<br>
noticed Michael Hudson recently provided a nice patch, that a number of<br>
bzr commands still require the current directory to be set to the<br>
target of the operation. For instance:<br>
<br>
- send (edit: nope, it just uses a different option from the others)[1]<br>
- switch<br>
- bind<br>
- conflicts<br>
- nick<br>
<br>
While most of the time, using the current directory is usually the<br>
most convenient option for interactive use, when you are using remote<br>
branches that are only accessible via 'bzr://' or 'http://' and not<br>
accessible as filesystem objects, these commands are unusable.<br>
<br>
Some commands only make sense for a working tree, so it's less<br>
important for those that the directory can be specified (i.e., they<br>
must already be accessible on the filesystem).<br>
<br>
[1]:<br>
Actually, after looking at the help for 'send', I noticed a<br>
-f/--from=ARG option that looks like it would allow making merge<br>
directives for remote branches. However, I have a hard time<br>
comprehending the distinction between -d/--directory=ARG (used by many<br>
commands) and -f/--from=ARG (used by 'send' and perhaps others). Is<br>
there a good reason that '-d' was abandoned for 'send'?<br>
<br>
Could we have a universal option to specify the *subject* of the<br>
operation; by this I mean that *subject* is defined as whatever the<br>
current directory would mean: for 'send', the subject is currently<br>
specified by the '--from' option, while for 'push' the subject is<br>
currently specified by the '--directory' option.<br>
</blockquote></div><br>I agree that we need a standard option (like -v or -q)<br>which would effectively run the command as if you first cd into that directory.<br>This would be very useful for eg. bash scripting where at the moment<br>
our scripts look like:<br>cd x<br>bzr missing<br>cd y <br>bzr missing<br><br>regards<br>marius<br>