[RFC] commit --fixes xxx: please, store actual bug id in addition to full URL

John Arbash Meinel john at arbash-meinel.com
Thu Feb 26 14:25:41 GMT 2009


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

Alexander Belchenko wrote:
> It's not quite rfc, just as the question I'd like to make bzr.devs aware
> of.
> 
> Currently bzr commit --fixes=xxx store full URL to the bug page.
> 
> In QBzr we're using special regex to extract bug id back to original
> form and then represent them in qlog view as "bug #12345".
> (For example see http://qbzr.googlegroups.com/web/qlog.png)
> 
> To support every new bug tracker we have to add specialized regex
> to parse full URL.
> 
> Maybe it makes more sense to store not only full URL to bug page (as
> today) but in addition and original bug id? So it will be much
> easier to extract this info?
> 
> 
> 

I think Robert touched on this, but to be clear. I think the correct
place to put this is as part of bugtracker.py code. Specifically, we
have a "get_bug_url()" function that maps a "bug_id" => "URL" we just
need to add the opposite function, to map "URL" => "bug_id".

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmmpmUACgkQJdeBCYSNAAP2PwCfc+hAaAV78WAiY5gimX2AevuG
IkEAoKk8MpcRrNnrz2x31JszG3sJPDAu
=Ihzi
-----END PGP SIGNATURE-----



More information about the bazaar mailing list