/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/plugins/launchpad/lp_propose.py

  • Committer: Aaron Bentley
  • Date: 2010-04-21 07:05:44 UTC
  • mto: This revision was merged to the branch mainline in revision 5171.
  • Revision ID: aaron@aaronbentley.com-20100421070544-h4kwuup9nrak4sei
Fix the URLs generated by canonical_url

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
 
 
18
import re
18
19
import webbrowser
19
20
 
20
21
from bzrlib import (
203
204
def canonical_url(object):
204
205
    """Return the canonical URL for a branch."""
205
206
    url = object.self_link.replace('https://api.', 'https://code.')
206
 
    return url.replace('/beta/', '/')
 
207
    return re.sub('\/(beta|[0-9].[0-9])\/', '/', url)