Show More
@@ -53,3 +53,20 b' def disallowednewunstable(repo, revs):' | |||
|
53 | 53 | if allowunstable: |
|
54 | 54 | return revset.baseset() |
|
55 | 55 | return repo.revs(b"(%ld::) - %ld", revs, revs) |
|
56 | ||
|
57 | ||
|
58 | def skip_empty_successor(ui, command): | |
|
59 | empty_successor = ui.config(b'rewrite', b'empty-successor') | |
|
60 | if empty_successor == b'skip': | |
|
61 | return True | |
|
62 | elif empty_successor == b'keep': | |
|
63 | return False | |
|
64 | else: | |
|
65 | raise error.ConfigError( | |
|
66 | _( | |
|
67 | b"%s doesn't know how to handle config " | |
|
68 | b"rewrite.empty-successor=%s (only 'skip' and 'keep' are " | |
|
69 | b"supported)" | |
|
70 | ) | |
|
71 | % (command, empty_successor) | |
|
72 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now