[ANNOUNCE] bzrtools-54 [PATCH] baz2bzr takes various options

John A Meinel john at arbash-meinel.com
Fri Jun 3 22:00:10 BST 2005


Aaron Bentley wrote:

> John A Meinel wrote:
> | I went ahead and did the options patch, see attached.
>
> Cool.  Applied. I'm in the middle of refactoring, so you probably want
> to hold off on any other changes.
>
> In the future, could you use a max width of 79 columns?

No problem. The only option I was thinking about adding was a
"--no-remove-unused" or some such, so that you could tell baz2bzr to
keep the {arch} directory. It can be nice for debugging purposes.

>
> | I added quite a few options, most of which are useful to me, but all of
> | them have sane defaults so that you can just run baz2bzr like you
> used to.
>
> Okay.  Do you use not-fancy?  I'm inclined to take that one out.  It was
> just for the testcases.

No. I just noticed that the option was there, but not exposed, so I
exposed it. Fancy is certainly nicer.

>
> | I also added a message "Cleaning up" just before it removes the
> | directory. On my system, if you abort, it takes it a while to delete
> | everything, which makes you wonder what is going on, and possibly hit ^C
> | again.
>
> Yeah, I've noticed that problem, too.  That's a reasonable way of
> handling it.
>
> | I'm hoping that writing 'Cleaning up' will allow it to do so. I
> | was hoping to do it only during an exception, do you know how to do
> that?
>
> The only way I know is to do a fake "finally":
>
> try:
> ~    may_raise()
> except:
> ~    print "Cleaning up"
> ~    do_cleanup()
> ~    raise
> do_cleanup()
>
Yeah. I'm okay with always printing it.
I was actually, also thinking about printing a "Merging..." statement,
since that also takes a long time, and it looks like baz2bzr is stalled
at 100%.

> Aaron

Thanks for merging, I'm glad you liked it.
John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050603/eb5ab5f4/attachment.pgp 


More information about the bazaar mailing list