Rev 6023: Fix bug #816417, it seems older foreign branch implementations did not set Branch.base. in http://bazaar.launchpad.net/~jameinel/bzr/2.4-launchpad-package-freshness-609187

John Arbash Meinel john at arbash-meinel.com
Fri Aug 5 16:42:58 UTC 2011


At http://bazaar.launchpad.net/~jameinel/bzr/2.4-launchpad-package-freshness-609187

------------------------------------------------------------
revno: 6023
revision-id: john at arbash-meinel.com-20110805164253-vwi0dbt1sqkpzyn3
parent: john at arbash-meinel.com-20110726081856-st9ntoxihwokkfe9
fixes bug(s): https://launchpad.net/bugs/816417
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.4-launchpad-package-freshness-609187
timestamp: Fri 2011-08-05 18:42:53 +0200
message:
  Fix bug #816417, it seems older foreign branch implementations did not set Branch.base.
-------------- next part --------------
=== modified file 'bzrlib/plugins/launchpad/__init__.py'
--- a/bzrlib/plugins/launchpad/__init__.py	2011-07-26 08:18:56 +0000
+++ b/bzrlib/plugins/launchpad/__init__.py	2011-08-05 16:42:53 +0000
@@ -479,9 +479,11 @@
     :return: If this isn't a packaging branch, return None. If it is, return
         (archive, series, project)
     """
+    if url is None:
+        return None
     m = _package_branch.search(url)
     if m is None:
-        return
+        return None
     archive, series, project, user = m.group('archive', 'series',
                                              'project', 'user')
     if series is not None:



More information about the bazaar-commits mailing list