Commits

Fredrik Håård committed 1942550

fixed superuser

Comments (0)

Files changed (2)

     Modules to load before running hooks
 tests
     List of tests to run for all repositories
+superuser
+    List of users who are allowed to bypass tests
 repos
     List of repository names
 <reponame>.path 

autohook/autohook.py

         #if superuser is set and matches, bypass hooks
         if user in ui.configlist('autohook', 'superuser'):
             info("User %s bypassing hooks" % (user,))
+            return False
         
         #load configured modules
         _load_modules(ui)