Fix the issue with duplicate merge request versions
authorMarius Mathiesen <marius@gitorious.org>
Wed, 20 Feb 2013 12:35:46 +0000 (13:35 +0100)
committerMarius Mathiesen <marius@gitorious.org>
Wed, 20 Feb 2013 12:35:46 +0000 (13:35 +0100)
commit1613cc51e1e4c77a0ab891ea9efe88a786525913
treec9d0fed5d062930bd662592950249f0b895afc36
parent709a91d6d99ef51b47cb6fe4affa31bc1738c4ed
Fix the issue with duplicate merge request versions

When creating a new merge request, a separate processor will ensure
the tracking repository exists and create a new version for the merge
request. This causes another push to occur (since doing git push will
trigger those), and the push processor would intercept this push and
create a version.

With this change, the push processor will only process merge request
updates, not deletions (it didn't before this change) and creations.

Bugs like these are hard to find...
app/processors/push_processor.rb
test/unit/processors/push_processor_test.rb