Mercurial > public > mercurial-scm > hg-stable
diff mercurial/interfaces/repository.py @ 47097:81eb7091c494
sidedata: add a way of replacing an existing sidedata computer
This will be useful in a future patch to replace a sequential computer with
a parallel computer. We only allow for explicit replacement, to force the users
to think about overriding computers.
Differential Revision: https://phab.mercurial-scm.org/D10358
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 19 Apr 2021 11:22:21 +0200 |
parents | 223b47235d1c |
children | f58a13c52726 |
line wrap: on
line diff
--- a/mercurial/interfaces/repository.py Thu Apr 08 16:30:10 2021 +0200 +++ b/mercurial/interfaces/repository.py Mon Apr 19 11:22:21 2021 +0200 @@ -1856,7 +1856,9 @@ def savecommitmessage(text): pass - def register_sidedata_computer(kind, category, keys, computer, flags): + def register_sidedata_computer( + kind, category, keys, computer, flags, replace=False + ): pass def register_wanted_sidedata(category):