Changeset - 092080cd96ba
[Not reviewed]
beta
0 3 0
Marcin Kuzminski - 14 years ago 2012-02-27 04:06:59
marcin@python-works.com
Git fixes
- removed remotes from git-branches
- fixed parsing for git node history
- docs updates
3 files changed with 19 insertions and 5 deletions:
0 comments (0 inline, 0 general)
docs/changelog.rst
Show inline comments
 
@@ -4,7 +4,7 @@ Changelog
 
=========
 

	
 

	
 
1.3.1 (**2012-XX-XX**)
 
1.3.2 (**2012-XX-XX**)
 
----------------------
 

	
 
:status: in-progress
 
@@ -18,6 +18,20 @@ fixes
 
+++++
 

	
 

	
 
1.3.1 (**2012-02-27**)
 
----------------------
 

	
 
news
 
++++
 

	
 

	
 
fixes
 
+++++
 

	
 
- redirection loop occurs when remember-me wasn't checked during login
 
- fixes issues with git blob history generation 
 
- don't fetch branch for git in file history dropdown. Causes unneeded slowness
 

	
 
1.3.0 (**2012-02-26**)
 
----------------------
 

	
rhodecode/lib/vcs/backends/git/changeset.py
Show inline comments
 
@@ -246,8 +246,9 @@ class GitChangeset(BaseChangeset):
 
        which is generally not good. Should be replaced with algorithm
 
        iterating commits.
 
        """
 
        cmd = 'log --name-status -p %s -- "%s" | grep "^commit"' \
 
            % (self.id, path)
 
        cmd = 'log --pretty="format: %%H" --name-status -p %s -- "%s"' % (
 
                  '', 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]
rhodecode/lib/vcs/backends/git/repository.py
Show inline comments
 
@@ -242,8 +242,7 @@ class GitRepository(BaseRepository):
 
        sortkey = lambda ctx: ctx[0]
 
        _branches = [('/'.join(ref.split('/')[2:]), head)
 
            for ref, head in refs.items()
 
            if ref.startswith('refs/heads/') or
 
            ref.startswith('refs/remotes/') and not ref.endswith('/HEAD')]
 
            if ref.startswith('refs/heads/') and not ref.endswith('/HEAD')]
 
        return OrderedDict(sorted(_branches, key=sortkey, reverse=False))
 

	
 
    def _get_tags(self):
0 comments (0 inline, 0 general)