Commits

Fredrik Håård  committed 6a41710

bare bones documentation

  • Participants
  • Parent commits 6206b94

Comments (0)

Files changed (2)

-Automatic hook configuration for multiple Mercurial repositories
+Automatic hook configuration for multiple Mercurial repositories
+
+Can be configured in any hgrc (system, user, repo) and trigger for 
+any repository that uses that hgrc. Can load external hooks that needs
+to accept parameters ui, repo, user, start, end and/or **kwargs
+Only handles pretxnchangegroup hooks
+
+
+Sample config:
+[hooks]
+pretxnchangegroup = python:path/to/autohook/autohook.py:hook
+
+[autohook]
+debug=True
+loadpath=/path/to/hooks
+loadmodules=hookmodule1 hookmodule2
+tests = adds_branch hookmodule1.myhook
+repos = orig
+orig.path = /path/to/repo
+orig.tests = has_multiple_heads hookmodule2.hook

File autohook/__init__.py

 """
-not in any way done or working
 sample config
 [hooks]
-pretxnchangegroup = python:/path/to/autohook/autohook.py:hook
+pretxnchangegroup = python:path/to/autohook/autohook.py:hook
 
 [autohook]
 debug=True
-loadpath=/var/globalhooks /home/me/myhooks
-loadmodules=test
+loadpath=/path/to/hooks
+loadmodules=hookmodule1 hookmodule2
+tests = adds_branch hookmodule1.myhook
 repos = orig
-tests = adds_branch
-orig.path = C:\Users\fredrik\workspaces\test\orig
-orig.tests = has_multiple_heads test.hello
+orig.path = /path/to/repo
+orig.tests = has_multiple_heads hookmodule2.hook
 
 """