summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2010-06-05 10:27:43 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2010-06-05 10:32:04 -0400
commit14250befc7ad9b82b380a1fb9389de6975d41d55 (patch)
tree4fa74d037d682c701e22d56962f177a1fad404e3
parent2ad51d78025a141d455e5bf8b3c2acee451156ad (diff)
Handle 'see <url> <bug reference>'
The code that was supposed to handle 'See Mozilla bug http://bugzilla.mozilla.org/show_bug.cgi?...' as a cross reference was also detecting 'See https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_MaybeGC https://bugzilla.gnome.org/show_bug.cgi?id=614725' As a cross-reference. Fix by requiring the "intervening words" not to have a : or / in them, since "See <url>" is clearly standalone and something with a : or a / in it is probably an URL. Reported by Adel Gadllah https://bugzilla.gnome.org/show_bug.cgi?id=619328
-rwxr-xr-xgit-bz2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-bz b/git-bz
index d5596c3..941b636 100755
--- a/git-bz
+++ b/git-bz
@@ -1686,7 +1686,7 @@ def edit_bug(bug, applied_commits=None, fix_commits=None):
return True
LOG_BUG_REFERENCE = re.compile(r"""
-(\b[Ss]ee\s+(?:\S+\s+){0,2})?
+(\b[Ss]ee\s+(?:[^\s:/]+\s+){0,2})?
(?:(https?://[^/]+/show_bug.cgi\?id=[^&\s]+)
|
[Bb]ug\s+\#?(\d+))