Changeset - 66c778b8cb54
[Not reviewed]
beta
0 4 0
Marcin Kuzminski - 13 years ago 2012-08-04 21:39:05
marcin@python-works.com
Extended commit search schema with date of commit
4 files changed with 10 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/indexers/__init__.py
Show inline comments
 
@@ -74,6 +74,7 @@ FRAGMENTER = ContextFragmenter(200)
 

	
 
CHGSETS_SCHEMA = Schema(
 
    raw_id=ID(unique=True, stored=True),
 
    date=NUMERIC(stored=True),
 
    last=BOOLEAN(),
 
    owner=TEXT(),
 
    repository=ID(unique=True, stored=True),
rhodecode/lib/indexers/daemon.py
Show inline comments
 
@@ -196,6 +196,7 @@ class WhooshIndexingDaemon(object):
 
            writer.add_document(
 
                raw_id=unicode(cs.raw_id),
 
                owner=unicode(repo.contact),
 
                date=cs._timestamp,
 
                repository=safe_unicode(repo_name),
 
                author=cs.author,
 
                message=cs.message,
rhodecode/lib/vcs/backends/git/changeset.py
Show inline comments
 
@@ -60,6 +60,10 @@ class GitChangeset(BaseChangeset):
 
                                  getattr(self._commit, self._date_tz_property))
 

	
 
    @LazyProperty
 
    def _timestamp(self):
 
        return getattr(self._commit, self._date_property)
 

	
 
    @LazyProperty
 
    def status(self):
 
        """
 
        Returns modified, added, removed, deleted files for current changeset
rhodecode/lib/vcs/backends/hg/changeset.py
Show inline comments
 
@@ -52,6 +52,10 @@ class MercurialChangeset(BaseChangeset):
 
        return date_fromtimestamp(*self._ctx.date())
 

	
 
    @LazyProperty
 
    def _timestamp(self):
 
        return self._ctx.date()[0]
 

	
 
    @LazyProperty
 
    def status(self):
 
        """
 
        Returns modified, added, removed, deleted files for current changeset
0 comments (0 inline, 0 general)