Mercurial > public > mercurial-scm > hg-stable
diff mercurial/exthelper.py @ 41073:8f40e21ca842
exthelper: reintroduce the ability to register filesets
Same mechanism as revsets earlier in this series. The LFS extension is updated
to provide test coverage.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 27 Dec 2018 23:46:35 -0500 |
parents | 70ca0e846d25 |
children | c81bb97b0cac |
line wrap: on
line diff
--- a/mercurial/exthelper.py Thu Dec 27 21:55:22 2018 -0500 +++ b/mercurial/exthelper.py Thu Dec 27 23:46:35 2018 -0500 @@ -40,6 +40,7 @@ self.command = registrar.command(self.cmdtable) self.configtable = {} self.configitem = registrar.configitem(self.configtable) + self.filesetpredicate = registrar.filesetpredicate() self.revsetpredicate = registrar.revsetpredicate() self.templatekeyword = registrar.templatekeyword() @@ -48,6 +49,7 @@ self._uipopulatecallables.extend(other._uipopulatecallables) self._extcallables.extend(other._extcallables) self._repocallables.extend(other._repocallables) + self.filesetpredicate._table.update(other.filesetpredicate._table) self.revsetpredicate._table.update(other.revsetpredicate._table) self.templatekeyword._table.update(other.templatekeyword._table) self._commandwrappers.extend(other._commandwrappers)