Commits

Anonymous committed 252ba8e

- Fix documentation.

  • Participants
  • Parent commits 8169bbc
  • Tags release1.0

Comments (0)

Files changed (1)

exclude-changesets.py

 #!/usr/bin/env python
 
-'''exclude_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
 following to your hgrc
 
 [extensions]
-exclude_changesets = /path/to/exclude_changesets
+exclude-changesets = /path/to/exclude-changesets
 '''
 
 import os.path, re
     return False # No excluded changesets were found. The changegroup addition can go ahead.
 
 def reposetup(ui, repo):
-    ui.setconfig("hooks", "pretxnchangegroup.exclude_changesets", checkForExcludedChangesets)
+    ui.setconfig("hooks", "pretxnchangegroup.exclude-changesets", checkForExcludedChangesets)