best way to add unknowns from the command line?
david.ingamells at mapscape.eu
Thu Mar 22 14:21:40 UTC 2012
Since you seem to be using unix from your directory path syntax why
don't you write a little bit of bash - or python - or perl - to loop
over what bzr status returns and prompt before adding or filter that
list on a specific subdirectory?
Unix has a fantastic amount of tooling that works great together but
still people still seem to want every tool to re-invent every wheel and
do everything including wash the dishes.
I have to say that bzr isn't very unix friendly in this regard as it
doesn't have a command option that just lists the unknown files without
any spurious test.
e.g. in bash if bzr status just lists unknown files (and no changed,
removed, ...) you could do something like the following
pushd `bzr root`
for f in `bzr status | egrep "^path/for/my/desired/subdirectory"`
bzr add $f
On 22/03/12 12:04, Iwata wrote:
> I want a option to ignore outside of specified subdir, rather than
> stopping recursion by depth.
> It may improve performance, and reasonable enough.
> This is not only about qadd, but also qcommit and qrevert.
> 2012/03/22 18:41 "Alexander Belchenko" <bialix at ukr.net
> <mailto:bialix at ukr.net>>:
> Vincent Ladeuil пишет:
> Alexander Belchenko <bialix at ukr.net
> <mailto:bialix at ukr.net>> writes:
> > Chris Hecker пишет:
> >> bzr qadd takes forever to launch because it expands entire
> >> directories on load, which is silly.
> > I don't think it's silly.
> Me neither but hey, some people just talk this way (figure of
> speech and
> stuff like that )...
> On the other hand, an option to stop at the unknown directory
> could probably help (such directories could then be either
> ignored or
> explored one level at a time or in full under user control).
> The whole idea of add is "add unknown files and directories".
> Where we should stop? Why? Why don't user ignore directories with
> huge amount of garbage? Where is balance?
*David Ingamells * Test Architect *Mapscape *
Henri Wijnmalenweg 5b | 5657 EP Eindhoven | The Netherlands
Phone +31 (0)40 7113571 | Fax +31 (0)40 7113599
Mapscape B.V. is ISO9001:2008 certified.
This e-mail and any attachment may contain corporate proprietary
information and may only be read, copied and used by the intended
recipient. If you have received it by mistake, please notify us
immediately by reply e-mail and delete this e-mail and its attachments
from your system. We believe but do not warrant that this message and
any attachments are virus free.
Mapscape B.V. is registered at the Kamer van Koophandel Oost-Brabant
located in Eindhoven, The Netherlands, number 17210210.
More information about the bazaar