Show More
@@ -154,9 +154,9 b' check saving last-message.txt' | |||||
154 | > from mercurial import util |
|
154 | > from mercurial import util | |
155 | > def abortfolding(ui, repo, hooktype, **kwargs): |
|
155 | > def abortfolding(ui, repo, hooktype, **kwargs): | |
156 | > ctx = repo[kwargs.get('node')] |
|
156 | > ctx = repo[kwargs.get('node')] | |
157 |
> if set(ctx.files()) == {'c', 'd', 'f'}: |
|
157 | > if set(ctx.files()) == {b'c', b'd', b'f'}: | |
158 | > return True # abort folding commit only |
|
158 | > return True # abort folding commit only | |
159 |
> ui.warn('allow non-folding commit\\n') |
|
159 | > ui.warn(b'allow non-folding commit\\n') | |
160 | > EOF |
|
160 | > EOF | |
161 | $ cat > .hg/hgrc <<EOF |
|
161 | $ cat > .hg/hgrc <<EOF | |
162 | > [hooks] |
|
162 | > [hooks] |
General Comments 0
You need to be logged in to leave comments.
Login now