repository: introduce register_changeset callback
The new callback is called whenever a changeset is added to the repository (commit, unbundle or exchange). Since the bulk operations already parse the changeset (readfiles or full changesetrevision), always use the latter to avoid redundant lookups. The first consumer of the new interface needs to look at extra. Differential Revision: https://phab.mercurial-scm.org/D9780
Showing
- mercurial/changegroup.py 4 additions, 1 deletionmercurial/changegroup.py
- mercurial/commit.py 3 additions, 0 deletionsmercurial/commit.py
- mercurial/exchangev2.py 2 additions, 0 deletionsmercurial/exchangev2.py
- mercurial/interfaces/repository.py 8 additions, 0 deletionsmercurial/interfaces/repository.py
- mercurial/localrepo.py 3 additions, 0 deletionsmercurial/localrepo.py
Loading
Please register or sign in to comment