changeset 667:27fefb7e7cec

findcommonoutgoing: use githandler from repo
author Siddharth Agarwal <sid0@fb.com>
date Wed, 19 Feb 2014 15:13:43 -0800
parents 2659f63f0beb
children b5ef3f0e0efe
files hggit/__init__.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/__init__.py
+++ b/hggit/__init__.py
@@ -156,8 +156,7 @@
 
 def findcommonoutgoing(orig, repo, other, *args, **kwargs):
     if isinstance(other, gitrepo.gitrepo):
-        git = GitHandler(repo, repo.ui)
-        heads = git.get_refs(other.path)[0]
+        heads = repo.githandler.get_refs(other.path)[0]
         kw = {}
         kw.update(kwargs)
         for val, k in zip(args,