~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/browser/branch.py

  • Committer: Jelmer Vernooij
  • Date: 2011-09-28 11:30:52 UTC
  • mto: This revision was merged to the branch mainline in revision 14112.
  • Revision ID: jelmer@canonical.com-20110928113052-8k0k2y5zl9867gth
Fix UI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
641
641
               (RevisionControlSystems.SVN, RevisionControlSystems.BZR_SVN)
642
642
 
643
643
    @property
644
 
    def svn_url_is_web(self):
645
 
        """True if an imported branch's SVN URL is HTTP or HTTPS."""
646
 
        # You should only be calling this if it's an SVN code import
 
644
    def url_is_web(self):
 
645
        """True if an imported branch's URL is HTTP or HTTPS."""
 
646
        # You should only be calling this if it's an SVN, BZR, GIT or HG code
 
647
        # import
647
648
        assert self.context.code_import
648
649
        url = self.context.code_import.url
649
650
        assert url