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

Aaron Bentley aaron.bentley at utoronto.ca
Fri Jun 3 21:45:06 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

| 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.

| 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()

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCoMFS0F+nu1YWqI0RAoI/AJ4u1b7RpyZBkTkqdKIjXHBODgDhlACfZd10
npWG3YpoV2SgXKd3FhACGSw=
=mYsV
-----END PGP SIGNATURE-----




More information about the bazaar mailing list