Comment 6 for bug 120050

Revision history for this message
Monty Taylor (mordred) wrote : Re: [Bug 120050] Re: 'bzr commit --fixes' should have better documentation

John A Meinel wrote:
> We certainly could change the term "tag" to "tracker" which is a bit
> more appropriate. I looked into writing a patch which could add
> "bzrlib.bugtracker.tracker_registry.keys()" to the output, except that
> doesn't quite work.
>
> The problem is that the tracker registry lists the tracker kind (like
> Launchpad, Bugzilla, etc) but not the *instance* (mozilla's Bugzilla
> instance, etc.)
>
> For some single-instance trackers like Launchpad, we could check from
> the Tracker object directly. However, others are explicitly configured,
> (possibly as per-branch values). For example, bugzilla instances are
> registered as:
>
> bugzilla_moz_url = XXXX
>
> and then you can use "bzr commit --fixes moz:1233245"
>
> And the user has control over what branches see what abbreviations.
>
> So we would have to extend the existing Trackers to probe the branch
> configuration and see what trackers have been registered by the user.
>
> Certainly possible to do, but not quite trivial.
>
> In the short term, would the attached patch have helped? It at least
> gives an example.

Yes. The patch would have made the general case clearer. Then if I
wanted to figure out how to deal with different trackers, I could do
that. I'm not sure bzr commit needs to be able to show available
trackers... but perhaps there should be a different command to get a
list of configured trackers?