Changeset - a9f2aa1e15e6
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-03-02 19:20:42
marcin@python-works.com
bring back cs id for node history in git as it improves performance. Adding format prevents from crashes of modified gitconfigs
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/vcs/backends/git/changeset.py
Show inline comments
 
@@ -244,13 +244,13 @@ class GitChangeset(BaseChangeset):
 

	
 
        TODO: This function now uses os underlying 'git' and 'grep' commands
 
        which is generally not good. Should be replaced with algorithm
 
        iterating commits.
 
        """
 
        cmd = 'log --pretty="format: %%H" --name-status -p %s -- "%s"' % (
 
                  '', path
 
                  self.id, path
 
               )
 
        so, se = self.repository.run_git_command(cmd)
 
        ids = re.findall(r'\w{40}', so)
 
        return [self.repository.get_changeset(id) for id in ids]
 

	
 
    def get_file_annotate(self, path):
0 comments (0 inline, 0 general)