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