Changeset - c987aa2eb2a8
[Not reviewed]
default
0 1 0
Søren Løvborg - 9 years ago 2016-11-10 15:09:47
sorenl@unity3d.com
compare: remove old Dulwich hack

We no longer support Dulwich 0.9.9, so don't need the workaround.
1 file changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/controllers/compare.py
Show inline comments
 
@@ -143,15 +143,14 @@ class CompareController(BaseRepoControll
 
                if other_changesets:
 
                    ancestors = [other_changesets[0].parents[0].raw_id]
 
                else:
 
                    # no changesets from other repo, ancestor is the other_rev
 
                    ancestors = [other_rev]
 

	
 
                # dulwich 0.9.9 doesn't have a Repo.close() so we have to mess with internals:
 
                gitrepo.object_store.close()
 
                gitrepo_remote.object_store.close()
 
                gitrepo.close()
 
                gitrepo_remote.close()
 

	
 
            else:
 
                so, se = org_repo.run_git_command(
 
                    ['log', '--reverse', '--pretty=format:%H',
 
                     '-s', '%s..%s' % (org_rev, other_rev)]
 
                )
0 comments (0 inline, 0 general)