~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bugtracker.py

  • Committer: Jonathan Lange
  • Date: 2009-03-12 07:06:18 UTC
  • mto: This revision was merged to the branch mainline in revision 4134.
  • Revision ID: jml@canonical.com-20090312070618-h7obf9em8kfzqg37
Some refactoring, some unit tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
tracker_registry.register('generic', GenericBugTracker())
285
285
 
286
286
 
 
287
FIXED = 'fixed'
 
288
 
 
289
 
287
290
def encode_fixes_bug_urls(bug_urls):
288
291
    """Return the 'bugs' property value for a revision that fixes 'bug_urls'.
289
292
    """
290
 
    return '\n'.join(('%s fixed' % url) for url in bug_urls)
 
293
    return '\n'.join(('%s %s' % (url, FIXED)) for url in bug_urls)