Show More
@@ -136,8 +136,9 b' def hook(ui, repo, name, throw=False, **' | |||||
136 | if cmd.count(':') >= 2: |
|
136 | if cmd.count(':') >= 2: | |
137 | path, cmd = cmd[7:].rsplit(':', 1) |
|
137 | path, cmd = cmd[7:].rsplit(':', 1) | |
138 | path = util.expandpath(path) |
|
138 | path = util.expandpath(path) | |
139 | mod = extensions.loadpath(os.path.join(repo.root, path), |
|
139 | if repo: | |
140 | 'hghook.%s' % hname) |
|
140 | path = os.path.join(repo.root, path) | |
|
141 | mod = extensions.loadpath(path, 'hghook.%s' % hname) | |||
141 | hookfn = getattr(mod, cmd) |
|
142 | hookfn = getattr(mod, cmd) | |
142 | else: |
|
143 | else: | |
143 | hookfn = cmd[7:].strip() |
|
144 | hookfn = cmd[7:].strip() |
General Comments 0
You need to be logged in to leave comments.
Login now