hgext/largefiles/reposetup.py
changeset 28876 79b8f052ee51
parent 28716 5c14af475f61
child 28878 a75c9665ef06
--- a/hgext/largefiles/reposetup.py	Tue Mar 29 00:08:25 2016 +0900
+++ b/hgext/largefiles/reposetup.py	Wed Apr 13 01:09:11 2016 +0200
@@ -352,12 +352,13 @@
     # is used to write status out.
     repo._lfstatuswriters = [ui.status]
 
-    def prepushoutgoinghook(local, remote, outgoing):
-        if outgoing.missing:
+    def prepushoutgoinghook(pushop):
+        if pushop.outgoing.missing:
             toupload = set()
             addfunc = lambda fn, lfhash: toupload.add(lfhash)
-            lfutil.getlfilestoupload(local, outgoing.missing, addfunc)
-            lfcommands.uploadlfiles(ui, local, remote, toupload)
+            lfutil.getlfilestoupload(pushop.repo, pushop.outgoing.missing,
+                                     addfunc)
+            lfcommands.uploadlfiles(ui, pushop.repo, pushop.remote, toupload)
     repo.prepushoutgoinghooks.add("largefiles", prepushoutgoinghook)
 
     def checkrequireslfiles(ui, repo, **kwargs):