Switch to unified view

a/Allura/allura/model/repository.py b/Allura/allura/model/repository.py
...
...
301
                content_type, encoding = 'application/octet-stream', None
301
                content_type, encoding = 'application/octet-stream', None
302
        return content_type, encoding
302
        return content_type, encoding
303
303
304
    def refresh(self, all_commits=False, notify=True):
304
    def refresh(self, all_commits=False, notify=True):
305
        '''Find any new commits in the repository and update'''
305
        '''Find any new commits in the repository and update'''
306
        self._impl.refresh_heads()
306
        if asbool(tg.config.get('scm.new_refresh')):
307
        if asbool(tg.config.get('scm.new_refresh')):
307
            refresh_repo(self, all_commits, notify)
308
            refresh_repo(self, all_commits, notify)
308
        self._impl.refresh_heads()
309
        self.status = 'analyzing'
309
        self.status = 'analyzing'
310
        session(self).flush()
310
        session(self).flush()
311
        sess = session(Commit)
311
        sess = session(Commit)
312
        log.info('Refreshing repository %s', self)
312
        log.info('Refreshing repository %s', self)
313
        commit_ids = self._impl.new_commits(all_commits)
313
        commit_ids = self._impl.new_commits(all_commits)