Show More
@@ -94,10 +94,10 b' class SimpleVCS(object):' | |||||
94 | # we use this regex which will match only on URLs pointing to shadow |
|
94 | # we use this regex which will match only on URLs pointing to shadow | |
95 | # repositories. |
|
95 | # repositories. | |
96 | shadow_repo_re = re.compile( |
|
96 | shadow_repo_re = re.compile( | |
97 |
'(?P<groups>(?:{slug_pat} |
|
97 | '(?P<groups>(?:{slug_pat}/)*)' # repo groups | |
98 |
'(?P<target>{slug_pat})/' |
|
98 | '(?P<target>{slug_pat})/' # target repo | |
99 |
'pull-request/(?P<pr_id>\d+)/' |
|
99 | 'pull-request/(?P<pr_id>\d+)/' # pull request | |
100 |
'repository$' |
|
100 | 'repository$' # shadow repo | |
101 | .format(slug_pat=SLUG_RE.pattern)) |
|
101 | .format(slug_pat=SLUG_RE.pattern)) | |
102 |
|
102 | |||
103 | def __init__(self, application, config, registry): |
|
103 | def __init__(self, application, config, registry): |
General Comments 0
You need to be logged in to leave comments.
Login now