~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/branch.py

  • Committer: Matt Nordhoff
  • Date: 2009-05-27 16:22:33 UTC
  • mfrom: (354.1.1 integration)
  • Revision ID: mnordhoff@mattnordhoff.com-20090527162233-zbn9lzqt47zrquff
Don't suggest that we support .bzr/ access on remote branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
            if public_branch is not None:
124
124
                self.served_url = public_branch
125
125
            else:
126
 
                self.served_url = self.url([])
 
126
                # Loggerhead only supports serving .bzr/ on local branches, so
 
127
                # we shouldn't suggest something that won't work.
 
128
                if self.branch.base.startswith('file://'):
 
129
                    self.served_url = self.url([])
 
130
                else:
 
131
                    self.served_url = None
127
132
        path = request.path_info_pop(environ)
128
133
        if not path:
129
134
            raise httpexceptions.HTTPMovedPermanently(