/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 09:18:24 UTC
  • mfrom: (7131.10.4 related-bugs)
  • Revision ID: breezy.the.bot@gmail.com-20181116091824-yeroktjwy7nl3l1c
Support --bugs= argument to commit to link related bugs (not necessarily ones that were fixed).

Merged from https://code.launchpad.net/~jelmer/brz/related-bugs/+merge/355893

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)