Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
scripts
mahara-scripts
Commits
224a5c14
Commit
224a5c14
authored
May 09, 2011
by
Francois Marier
Browse files
Make space in bug numbers optional
This is to catch things like "bug#1234"
parent
853dd978
Changes
1
Hide whitespace changes
Inline
Side-by-side
change-merged
View file @
224a5c14
...
@@ -33,7 +33,7 @@ def email_tracker(change_url, project, branch, submitter, commit):
...
@@ -33,7 +33,7 @@ def email_tracker(change_url, project, branch, submitter, commit):
git_log
=
subprocess
.
Popen
([
'git'
,
'--git-dir='
+
BASE_DIR
+
'/git/'
+
project
+
'.git'
,
'log'
,
'--no-merges'
,
commit
+
'^1..'
+
commit
],
stdout
=
subprocess
.
PIPE
).
communicate
()[
0
]
git_log
=
subprocess
.
Popen
([
'git'
,
'--git-dir='
+
BASE_DIR
+
'/git/'
+
project
+
'.git'
,
'log'
,
'--no-merges'
,
commit
+
'^1..'
+
commit
],
stdout
=
subprocess
.
PIPE
).
communicate
()[
0
]
# Find bug numbers referenced in the git log
# Find bug numbers referenced in the git log
bug_regexp
=
'[Bb]ug:?
+
#?([0-9]+)'
bug_regexp
=
'[Bb]ug:?
*
#?([0-9]+)'
tokens
=
re
.
split
(
bug_regexp
,
git_log
)
tokens
=
re
.
split
(
bug_regexp
,
git_log
)
# Extract unique bug numbers
# Extract unique bug numbers
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment