|
a/Allura/allura/model/repository.py |
|
b/Allura/allura/model/repository.py |
|
... |
|
... |
93 |
exhausted).'''
|
93 |
exhausted).'''
|
94 |
raise NotImplementedError, 'log'
|
94 |
raise NotImplementedError, 'log'
|
95 |
|
95 |
|
96 |
def compute_tree(self, commit, path='/'):
|
96 |
def compute_tree(self, commit, path='/'):
|
97 |
'''Used in hg and svn to compute a git-like-tree lazily'''
|
97 |
'''Used in hg and svn to compute a git-like-tree lazily'''
|
|
|
98 |
raise NotImplementedError, 'compute_tree'
|
|
|
99 |
|
|
|
100 |
def compute_tree_new(self, commit, path='/'):
|
|
|
101 |
'''Used in hg and svn to compute a git-like-tree lazily with the new models'''
|
98 |
raise NotImplementedError, 'compute_tree'
|
102 |
raise NotImplementedError, 'compute_tree'
|
99 |
|
103 |
|
100 |
def open_blob(self, blob): # pragma no cover
|
104 |
def open_blob(self, blob): # pragma no cover
|
101 |
'''Return a file-like object that contains the contents of the blob'''
|
105 |
'''Return a file-like object that contains the contents of the blob'''
|
102 |
raise NotImplementedError, 'open_blob'
|
106 |
raise NotImplementedError, 'open_blob'
|
|
... |
|
... |
197 |
return self._impl.symbolics_for_commit(commit)
|
201 |
return self._impl.symbolics_for_commit(commit)
|
198 |
def url_for_commit(self, commit):
|
202 |
def url_for_commit(self, commit):
|
199 |
return self._impl.url_for_commit(commit)
|
203 |
return self._impl.url_for_commit(commit)
|
200 |
def compute_tree(self, commit, path='/'):
|
204 |
def compute_tree(self, commit, path='/'):
|
201 |
return self._impl.compute_tree(commit, path)
|
205 |
return self._impl.compute_tree(commit, path)
|
|
|
206 |
def compute_tree_new(self, commit, path='/'):
|
|
|
207 |
return self._impl.compute_tree_new(commit, path)
|
202 |
|
208 |
|
203 |
def _log(self, rev, skip, max_count):
|
209 |
def _log(self, rev, skip, max_count):
|
204 |
ci = self.commit(rev)
|
210 |
ci = self.commit(rev)
|
205 |
if ci is None: return []
|
211 |
if ci is None: return []
|
206 |
return ci.log(int(skip), int(max_count))
|
212 |
return ci.log(int(skip), int(max_count))
|