Anonymous avatar Anonymous committed 252ba8e

- Fix documentation.

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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.