Allura/allura/model/repository.py
def url_for_commit(self, commit, url_type='ci'):
        'return an URL, given either a commit or object id'
        if isinstance(commit, basestring):
            object_id = commit
        else:
            object_id = commit._id

        if '/' in object_id:
            object_id = os.path.join(
                object_id, self._repo.app.END_OF_REF_ESCAPE)

        return os.path.join(self._repo.url(), url_type, object_id) + '/'
return an URL, given either a commit or object id
return an URL, given either a commit or object id
return an URL given either a commit or object id
def url_for_commit(self, commit, url_type='ci'):
        if isinstance(commit, basestring):
            object_id = commit
        else:
            object_id = commit._id
        if '/' in object_id:
            object_id = os.path.join(
                object_id, self._repo.app.END_OF_REF_ESCAPE)
        return os.path.join(self._repo.url(), url_type, object_id) + '/'
def url_for_commit ( self , commit , url_type = 'ci' ) : if isinstance ( commit , basestring ) : object_id = commit else : object_id = commit . _id if '/' in object_id : object_id = os . path . join ( object_id , self . _repo . app . END_OF_REF_ESCAPE ) return os . path . join ( self . _repo . url ( ) , url_type , object_id ) + '/'
return an URL, given either a commit or object id
return an URL given either a commit or object id
'return an URL, given either a commit or object id'
self
commit
url_type