git-fogbugz 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +6 -1
- data/VERSION +1 -1
- data/git-fogbugz.gemspec +1 -1
- data/lib/git_fogbugz.rb +4 -3
- metadata +1 -1
data/README.rdoc
CHANGED
|
@@ -47,7 +47,12 @@ If you are
|
|
|
47
47
|
http://[cgitserver.example.com]/cgit/[repository_name]/commit/?id=^R2
|
|
48
48
|
|
|
49
49
|
=== gitweb
|
|
50
|
-
|
|
50
|
+
|
|
51
|
+
Diff URL:
|
|
52
|
+
https://[cgitserver.example.com]/git/gitweb.cgi?p=[repository_name];a=blobdiff;f=^FILE;hb=^R2;hpb=^R1
|
|
53
|
+
|
|
54
|
+
Log URL:
|
|
55
|
+
https://[cgitserver.example.com]/git/gitweb.cgi?p=[repository_name];a=history;f=^FILE;hb=^R2
|
|
51
56
|
|
|
52
57
|
|
|
53
58
|
== Todo
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.4
|
data/git-fogbugz.gemspec
CHANGED
data/lib/git_fogbugz.rb
CHANGED
|
@@ -176,10 +176,11 @@ BANNER
|
|
|
176
176
|
fogbugz.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
177
177
|
end
|
|
178
178
|
if commit.message =~ /(bugzid|case|issue)[:\s]+(\d+)/i
|
|
179
|
-
|
|
179
|
+
new_id = commit.id[0,7]
|
|
180
|
+
old_id = commit.parents[0].id[0,7]
|
|
180
181
|
bugzid = $2
|
|
181
182
|
files = commit.diffs.each do |d|
|
|
182
|
-
url = make_url(bugzid,
|
|
183
|
+
url = make_url(bugzid, old_id, new_id, d.a_path)
|
|
183
184
|
resp = fogbugz.get(url)
|
|
184
185
|
unless resp.body =~ /OK/
|
|
185
186
|
$stderr.puts 'FAILED: ' + url
|
|
@@ -196,7 +197,7 @@ BANNER
|
|
|
196
197
|
end
|
|
197
198
|
|
|
198
199
|
def make_url(bug_id, old, new, file)
|
|
199
|
-
"/cvsSubmit.asp?ixBug=#{bug_id}&sFile=#{file}&sPrev=#{old}&sNew=#{new}&ixRepository=#{@options.repo_id}"
|
|
200
|
+
"/cvsSubmit.asp?ixBug=#{bug_id}&sFile=#{URI.escape(file)}&sPrev=#{old}&sNew=#{new}&ixRepository=#{@options.repo_id}"
|
|
200
201
|
end
|
|
201
202
|
end
|
|
202
203
|
|