largefiles: update lfutil.findoutgoing() discovery method
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 08 Oct 2012 22:43:54 -0400
changeset 17794 a03cca2cf6c2
parent 17793 8474be4412ca
child 17795 9fcea3f47a3a
largefiles: update lfutil.findoutgoing() discovery method It looks like this method missed the updates in 30273f0c776b (which changed the preferred discovery method from findcommonincoming() to findcommonoutgoing()), and cd956049fc14 (which rolls up the outgoing lists into a single object).
hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py	Mon Oct 15 18:37:34 2012 -0300
+++ b/hgext/largefiles/lfutil.py	Mon Oct 08 22:43:54 2012 -0400
@@ -52,9 +52,8 @@
 
 def findoutgoing(repo, remote, force):
     from mercurial import discovery
-    common, _anyinc, _heads = discovery.findcommonincoming(repo,
-        remote.peer(), force=force)
-    return repo.changelog.findmissing(common)
+    outgoing = discovery.findcommonoutgoing(repo, remote.peer(), force=force)
+    return outgoing.missing
 
 # -- Private worker functions ------------------------------------------