[PATCH] largefiles: update lfutil.findoutgoing() discovery method

Matt Harbison matt_harbison at yahoo.com
Mon Oct 8 22:25:19 CDT 2012


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1349750634 14400
# Node ID 7a37921f32ff96e82ddc1605bc6506fcf2165194
# Parent  fa714f3ed2989aff64c267c9935251d9fc4f31ee
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).

diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py
+++ b/hgext/largefiles/lfutil.py
@@ -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, force=force)
+    return outgoing.missing
 
 # -- Private worker functions ------------------------------------------
 


More information about the Mercurial-devel mailing list