http://bugzilla.novell.com/show_bug.cgi?id=538782
User suse-tux@gmx.de added comment
http://bugzilla.novell.com/show_bug.cgi?id=538782#c3
--- Comment #3 from Marcus Hüwe
According to the apidocs, PUT does not support "cmd=commit&comment=". I just looked at how osc does it, and there too, the comment is sent through a POST.
Hmm the apidocs seem to be out of date then:/ - PUT also supports a "comment" parameter. The "trick" with osc is the following: when osc does a PUT request it also adds "?rev=upload" to the request which tells the backend not to commit the change. Instead it waits for other files and if the client issues a POST "...?cmd=commit..." request the backend commits all files which are in the "upload" revision. If you omit the "?rev=upload" parameter in the PUT request the backend directly commit your change (without a comment if you don't specify the "comment" parameter).
Regarding your concern about "2 commits", if you look at that POST request, there's a "rev=upload" - that ensures that the comment is included into the "upload" revision instead of a new commit / revision. See above - this only works if you upload your files with PUT "...?rev=upload...".
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.