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:50:20 +0000 (13:50 +0100)
commiteea2a1c772ce63a6d28222eac19bf061cb971876
treea67faa7cea6f2b1ea319cfcc4b8cdc2ea43451b2
parent3fd56212da57af1d76c3f8cd00709a06658ef544
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...

Conflicts:
test/unit/processors/push_processor_test.rb
app/processors/push_processor.rb
test/unit/processors/push_processor_test.rb