mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
improve creation of mercurial hook script
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env ${python}
|
||||
|
||||
#
|
||||
# registration .hg/hgrc:
|
||||
#
|
||||
@@ -7,14 +5,7 @@
|
||||
# changegroup.scm = python:scmhooks.callback
|
||||
#
|
||||
|
||||
import os, sys, urllib
|
||||
|
||||
pythonPath = "${path}"
|
||||
|
||||
if len(pythonPath) > 0:
|
||||
pathParts = pythonPath.split(os.pathsep)
|
||||
for i in range(len(pathParts)):
|
||||
sys.path.insert(i, pathParts[i])
|
||||
import os, urllib
|
||||
|
||||
baseUrl = "${url}"
|
||||
challenge = "${challenge}"
|
||||
|
||||
Reference in New Issue
Block a user