Show More
@@ -1,9 +1,9 b'' | |||
|
1 | 1 | $ cat > abortcommit.py <<EOF |
|
2 | 2 | > from mercurial import error |
|
3 | 3 | > def hook(**args): |
|
4 | > raise error.Abort("no commits allowed") | |
|
4 | > raise error.Abort(b"no commits allowed") | |
|
5 | 5 | > def reposetup(ui, repo): |
|
6 | > repo.ui.setconfig("hooks", "pretxncommit.nocommits", hook) | |
|
6 | > repo.ui.setconfig(b"hooks", b"pretxncommit.nocommits", hook) | |
|
7 | 7 | > EOF |
|
8 | 8 | $ abspath=`pwd`/abortcommit.py |
|
9 | 9 |
General Comments 0
You need to be logged in to leave comments.
Login now