changeset 13271:952baa2f3325

addchangegroup: document the current locking semantics
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 16 Jan 2011 17:26:34 +0100
parents 1e0d631b843b
children 5ccdca7df211
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Sun Jan 16 15:45:26 2011 +0100
+++ b/mercurial/localrepo.py	Sun Jan 16 17:26:34 2011 +0100
@@ -1672,6 +1672,8 @@
         """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