Switch to unified view

a/Allura/allura/model/repository.py b/Allura/allura/model/repository.py
...
...
47
        raise NotImplementedError, 'clone_from'
47
        raise NotImplementedError, 'clone_from'
48
48
49
    def commit(self, revision): # pragma no cover
49
    def commit(self, revision): # pragma no cover
50
        raise NotImplementedError, 'commit'
50
        raise NotImplementedError, 'commit'
51
51
52
    def all_commit_ids(self): # pragma no cover
53
        raise NotImplementedError, 'all_commit_ids'
54
52
    def new_commits(self, all_commits=False): # pragma no cover
55
    def new_commits(self, all_commits=False): # pragma no cover
53
        '''Return a list of native commits in topological order (heads first).
56
        '''Return a list of native commits in topological order (heads first).
54
57
55
        "commit" is a repo-native object, NOT a Commit object.
58
        "commit" is a repo-native object, NOT a Commit object.
56
        If all_commits is False, only return commits not already indexed.
59
        If all_commits is False, only return commits not already indexed.
...
...
71
        raise NotImplementedError, 'refresh_heads'
74
        raise NotImplementedError, 'refresh_heads'
72
75
73
    def refresh_commit(self, ci, native_ci): # pragma no cover
76
    def refresh_commit(self, ci, native_ci): # pragma no cover
74
        '''Refresh the data in the commit object 'ci' with data from the repo'''
77
        '''Refresh the data in the commit object 'ci' with data from the repo'''
75
        raise NotImplementedError, 'refresh_commit'
78
        raise NotImplementedError, 'refresh_commit'
79
80
    def refresh_commit_info(self, oid): # pragma no cover
81
        '''Refresh the data in the commit with id oid'''
82
        raise NotImplementedError, 'refresh_commit_info'
76
83
77
    def refresh_tree(self, tree): # pragma no cover
84
    def refresh_tree(self, tree): # pragma no cover
78
        '''Refresh the data in the tree object 'tree' with data from the repo'''
85
        '''Refresh the data in the tree object 'tree' with data from the repo'''
79
        raise NotImplementedError, 'refresh_tree'
86
        raise NotImplementedError, 'refresh_tree'
80
87
...
...
103
110
104
    def open_blob(self, blob): # pragma no cover
111
    def open_blob(self, blob): # pragma no cover
105
        '''Return a file-like object that contains the contents of the blob'''
112
        '''Return a file-like object that contains the contents of the blob'''
106
        raise NotImplementedError, 'open_blob'
113
        raise NotImplementedError, 'open_blob'
107
114
108
    def shorthand_for_commit(self, commit):
115
    def shorthand_for_commit(self, oid):
109
        return '[%s]' % commit.object_id[:6]
116
        return '[%s]' % oid
110
117
111
    def symbolics_for_commit(self, commit):
118
    def symbolics_for_commit(self, commit):
112
        '''Return symbolic branch and tag names for a commit.
119
        '''Return symbolic branch and tag names for a commit.
113
        Default generic implementation is provided, subclasses
120
        Default generic implementation is provided, subclasses
114
        may override if they have more efficient means.'''
121
        may override if they have more efficient means.'''
...
...
186
    # Proxy to _impl
193
    # Proxy to _impl
187
    def init(self):
194
    def init(self):
188
        return self._impl.init()
195
        return self._impl.init()
189
    def commit(self, rev):
196
    def commit(self, rev):
190
        return self._impl.commit(rev)
197
        return self._impl.commit(rev)
198
    def all_commit_ids(self):
199
        return self._impl.all_commit_ids()
200
    def refresh_commit_info(self, oid, seen):
201
        return self._impl.refresh_commit_info(oid, seen)
191
    def commit_context(self, commit):
202
    def commit_context(self, commit):
192
        return self._impl.commit_context(commit)
203
        return self._impl.commit_context(commit)
193
    def open_blob(self, blob):
204
    def open_blob(self, blob):
194
        return self._impl.open_blob(blob)
205
        return self._impl.open_blob(blob)
195
    def shorthand_for_commit(self, commit):
206
    def shorthand_for_commit(self, commit):