_changesets is a Mercurial extension which sets up a pretxncommit hook.
+'''exclude-changesets is a Mercurial extension which sets up a pretxncommit hook.
Any changesets to be pushed / pulled / bundled into the repository will have their
changeset hashes compared against a list of excluded hashes in repo/.excludedchangesets.
If any new hash is already in this file of excluded hashes then the entire
changegroup will be rejected.
-Enable the exclude
_changesets just like any other Mercurial extension by adding the
+Enable the exclude-changesets just like any other Mercurial extension by adding the
_changesets = /path/to/exclude _changesets
+exclude-changesets = /path/to/exclude-changesets
return False # No excluded changesets were found. The changegroup addition can go ahead.
- ui.setconfig("hooks", "pretxnchangegroup.exclude
+ ui.setconfig("hooks", "pretxnchangegroup.exclude-changesets", checkForExcludedChangesets)