Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 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 | 61c9bc3da402 |
children | 5ccdca7df211 |
comparison
equal
deleted
inserted
replaced
13270:1e0d631b843b | 13271:952baa2f3325 |
---|---|
1670 | 1670 |
1671 def addchangegroup(self, source, srctype, url, emptyok=False, lock=None): | 1671 def addchangegroup(self, source, srctype, url, emptyok=False, lock=None): |
1672 """Add the changegroup returned by source.read() to this repo. | 1672 """Add the changegroup returned by source.read() to this repo. |
1673 srctype is a string like 'push', 'pull', or 'unbundle'. url is | 1673 srctype is a string like 'push', 'pull', or 'unbundle'. url is |
1674 the URL of the repo where this changegroup is coming from. | 1674 the URL of the repo where this changegroup is coming from. |
1675 If lock is not None, the function takes ownership of the lock | |
1676 and releases it after the changegroup is added. | |
1675 | 1677 |
1676 Return an integer summarizing the change to this repo: | 1678 Return an integer summarizing the change to this repo: |
1677 - nothing changed or no source: 0 | 1679 - nothing changed or no source: 0 |
1678 - more heads than before: 1+added heads (2..n) | 1680 - more heads than before: 1+added heads (2..n) |
1679 - fewer heads than before: -1-removed heads (-2..-n) | 1681 - fewer heads than before: -1-removed heads (-2..-n) |