largefiles: use hg.peer instead of hg.remoteui stable
authorSimon Heimberg <simohe@besonet.ch>
Sat, 28 Jul 2012 22:55:01 +0200
branchstable
changeset 17276 eac3f9c2f9c5
parent 17275 8c3951e233f4
child 17277 323de4f49bd1
largefiles: use hg.peer instead of hg.remoteui
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Sun Jul 29 16:19:32 2012 +0900
+++ b/hgext/largefiles/overrides.py	Sat Jul 28 22:55:01 2012 +0200
@@ -934,10 +934,8 @@
     if revs:
         revs = [repo.lookup(rev) for rev in scmutil.revrange(repo, revs)]
 
-    remoteui = hg.remoteui
-
     try:
-        remote = hg.repository(remoteui(repo, opts), dest)
+        remote = hg.peer(repo, opts, dest)
     except error.RepoError:
         return None
     o = lfutil.findoutgoing(repo, remote, False)