addchangegroup: pass in lock to release it before changegroup hook is called
Currently, callers of addchangegroup first acquire the repository lock, usually to check that an unbundle request isn't racing. This means that changegroup hook actions that might write to a repo get stuck waiting for a lock. Here, we add a new optional lock parameter and update all the callers. Post-1.6 we may make it non-optional.
Showing
- hgext/bookmarks.py 2 additions, 3 deletionshgext/bookmarks.py
- mercurial/commands.py 2 additions, 1 deletionmercurial/commands.py
- mercurial/hgweb/protocol.py 1 addition, 1 deletionmercurial/hgweb/protocol.py
- mercurial/localrepo.py 6 additions, 4 deletionsmercurial/localrepo.py
- mercurial/sshserver.py 4 additions, 2 deletionsmercurial/sshserver.py
Loading
Please register or sign in to comment