Is it possible to combine the following two configspec lines in one?
Original configspec:
element .../test_dir_A/... .../my_branch/LATEST
element .../test_dir_B/... .../m开发者_如何学编程y_branch/LATEST
To something like
element .../[test_dir_A or test_dir_B]/... .../my_branch/LATEST
Thanks!
Regex in general aren't supported for config spec path.
The man page about config_spec confirms the use of pattern, so maybe something like:
element .../test_dir*/... .../my_branch/LATEST
could work (even though it wouldn't be restrict to just A or B)
The wildcard man page lists all the possibilities:
element .../test_dir_[AB]/... .../my_branch/LATEST
should be what you want.
[xyz]
Matches any of the listed characters.
精彩评论