Commits

Fredrik Håård  committed 690274c

Now works with hgapi

  • Participants
  • Parent commits de9ccea
  • Branches hgapi

Comments (0)

Files changed (1)

File autohook/autohook.py

     debug("Repo name " + reponame)
 
     #Get first and last revision
-    start = repo[node].rev()
-    end = repo['tip'].rev()
+    start = repo[node].rev
+    end = repo['tip'].rev
         
     #Run tests, first global and then specific for this repo
     for test in (repo.configlist('autohook', 'tests') +
 
 if __name__ == "__main__":
     import os
-    #for key in os.environ: #[x for x in os.environ if x.startswith("HG") ]:
-    #    print("%s: %s" % (key, os.environ[key]))
 
     repo = hgapi.Repo(os.path.abspath(os.curdir))
     node = os.environ['HG_NODE']
     url = os.environ['HG_URL']
     pending = os.environ['HG_PENDING']
-    print(int(hook(repo, node, url, pending, os.environ)))
-    sys.exit(1)
+    sys.exit(int(hook(repo, url, node, pending, os.environ)))
+