/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 bzrlib/bugtracker.py

  • Committer: Jelmer Vernooij
  • Date: 2009-03-18 15:38:56 UTC
  • mfrom: (4163 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4164.
  • Revision ID: jelmer@samba.org-20090318153856-dr2lddyz56ajwb9c
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
 
283
283
 
284
284
tracker_registry.register('generic', GenericBugTracker())
 
285
 
 
286
 
 
287
FIXED = 'fixed'
 
288
 
 
289
ALLOWED_BUG_STATUSES = set([FIXED])
 
290
 
 
291
 
 
292
def encode_fixes_bug_urls(bug_urls):
 
293
    """Get the revision property value for a commit that fixes bugs.
 
294
 
 
295
    :param bug_urls: An iterable of escaped URLs to bugs. These normally
 
296
        come from `get_bug_url`.
 
297
    :return: A string that will be set as the 'bugs' property of a revision
 
298
        as part of a commit.
 
299
    """
 
300
    return '\n'.join(('%s %s' % (url, FIXED)) for url in bug_urls)