# HG changeset patch # User Benoit Boissinot # Date 2011-01-16 16:26:34 # Node ID 952baa2f3325039daaefa40519885d89a9ce6fbd # Parent 1e0d631b843b83ab58b68667b34c3b3c0a630dec addchangegroup: document the current locking semantics diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1672,6 +1672,8 @@ class localrepository(repo.repository): """Add the changegroup returned by source.read() to this repo. srctype is a string like 'push', 'pull', or 'unbundle'. url is the URL of the repo where this changegroup is coming from. + If lock is not None, the function takes ownership of the lock + and releases it after the changegroup is added. Return an integer summarizing the change to this repo: - nothing changed or no source: 0