diff tests/test-extension.t @ 31187:6b8e1a08ef1d

patchbomb: add config knob to generate flags by template (issue5354) This can be used to flag patches by branch or topic automatically. Flags optionally given by --flag option are exported as {flags} template keyword, so you can add --flag V2.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 25 Feb 2017 18:41:00 +0900
parents df0a0734304a
children 46ba2cdda476
line wrap: on
line diff
--- a/tests/test-extension.t	Sat Feb 25 18:35:34 2017 +0900
+++ b/tests/test-extension.t	Sat Feb 25 18:41:00 2017 +0900
@@ -1113,6 +1113,14 @@
     intro=never  # never include an introduction message
     intro=always # always include an introduction message
   
+  You can specify a template for flags to be added in subject prefixes. Flags
+  specified by --flag option are exported as "{flags}" keyword:
+  
+    [patchbomb]
+    flagtemplate = "{separate(' ',
+                              ifeq(branch, 'default', '', branch|upper),
+                              flags)}"
+  
   You can set patchbomb to always ask for confirmation by setting
   "patchbomb.confirm" to true.