Show More
@@ -44,7 +44,7 b' python hook' | |||||
44 | > import os, time |
|
44 | > import os, time | |
45 | > from mercurial import ui, localrepo |
|
45 | > from mercurial import ui, localrepo | |
46 | > def rejecthook(ui, repo, hooktype, node, **opts): |
|
46 | > def rejecthook(ui, repo, hooktype, node, **opts): | |
47 | > ui.write('hook %s\\n' % repo['tip'].hex()) |
|
47 | > ui.write(b'hook %s\\n' % repo[b'tip'].hex()) | |
48 | > # create the notify file so caller knows we're running |
|
48 | > # create the notify file so caller knows we're running | |
49 | > fpath = os.path.join('$d', 'notify') |
|
49 | > fpath = os.path.join('$d', 'notify') | |
50 | > f = open(fpath, 'w') |
|
50 | > f = open(fpath, 'w') |
General Comments 0
You need to be logged in to leave comments.
Login now