Changeset 1322

Show
Ignore:
Timestamp:
09/29/06 08:03:36 (2 years ago)
Author:
hvr
Message:

GitPlugin:

yet another minor performance improvement for big repositories;

addresses #746

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gitplugin/0.10/gitplugin/PyGIT.py

    r1321 r1322  
    8080 
    8181    def last_change(self, sha, path): 
    82         for rev in self.history(sha, path): 
    83             return rev 
     82        for rev in self._git_call_f("git-rev-list --max-count=1 %s -- '%s'" % (sha,path)).readlines(): 
     83            return rev.strip() 
    8484        return None 
    8585