/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/bugtracker.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 10:50:21 UTC
  • mfrom: (7164 work)
  • mto: This revision was merged to the branch mainline in revision 7165.
  • Revision ID: jelmer@jelmer.uk-20181116105021-xl419v2rh4aus1au
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
 
407
407
 
408
408
FIXED = 'fixed'
 
409
RELATED = 'related'
409
410
 
410
 
ALLOWED_BUG_STATUSES = {FIXED}
 
411
ALLOWED_BUG_STATUSES = {FIXED, RELATED}
411
412
 
412
413
 
413
414
def encode_fixes_bug_urls(bug_urls):
414
415
    """Get the revision property value for a commit that fixes bugs.
415
416
 
416
 
    :param bug_urls: An iterable of escaped URLs to bugs. These normally
 
417
    :param bug_urls: An iterable of (escaped URL, tag) tuples. These normally
417
418
        come from `get_bug_url`.
418
419
    :return: A string that will be set as the 'bugs' property of a revision
419
420
        as part of a commit.
420
421
    """
421
 
    return '\n'.join(('%s %s' % (url, FIXED)) for url in bug_urls)
 
422
    return '\n'.join(('%s %s' % (url, tag)) for (url, tag) in bug_urls)