Changeset - e2c34c5fe820
[Not reviewed]
default
0 2 0
Mads Kiilerich - 6 years ago 2019-12-25 21:22:18
mads@kiilerich.com
Grafted from: eb3c1f944e88
vcs: drop Repository.name_unicode

It wouldn't make much sense in py3 ... and is barely used.
2 files changed with 1 insertions and 5 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/indexers/daemon.py
Show inline comments
 
@@ -107,13 +107,13 @@ class WhooshIndexingDaemon(object):
 
            log.info('Running full index build, as the changeset '
 
                     'index does not exist')
 
        else:
 
            self.initial = False
 

	
 
    def _get_index_revision(self, repo):
 
        db_repo = Repository.get_by_repo_name(repo.name_unicode)
 
        db_repo = Repository.get_by_repo_name(safe_unicode(repo.name))
 
        landing_rev = 'tip'
 
        if db_repo:
 
            _rev_type, _rev = db_repo.landing_rev
 
            landing_rev = _rev
 
        return landing_rev
 

	
kallithea/lib/vcs/backends/base.py
Show inline comments
 
@@ -95,16 +95,12 @@ class BaseRepository(object):
 
    def name(self):
 
        """
 
        Return repository name (without group name)
 
        """
 
        raise NotImplementedError
 

	
 
    @property
 
    def name_unicode(self):
 
        return safe_unicode(self.name)
 

	
 
    @LazyProperty
 
    def owner(self):
 
        raise NotImplementedError
 

	
 
    @LazyProperty
 
    def description(self):
0 comments (0 inline, 0 general)