Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-22602: Add gerrit_move_to_kv_engine.py
Add a script to assist in migrating patches from the old memcached & ep-engine repos to kv_engine. The script will checkout the given change from Gerrit (memcached or ep-engine), rebase into kv-engine, and then re-upload to Gerrit as a new change against kv-engine. The script automatically handles any rebases onto kv_engine which don't otherwise conflict with upstream changes on the original repo - i.e. if your patch would have rebased cleanly prior to the repo merge, it should cleanly rebase onto the merged repo. Example usage: scripts/gerrit_move_to_kv_engine.py drigby 78323 Example output: ** Migrating change 78323 - 'Move Blob to its own file (blob.{cc.h})' to kv_engine >> Fetching refs/changes/23/78323/3 From http://review.couchbase.org/ep-engine * branch refs/changes/23/78323/3 -> FETCH_HEAD -- Checking out change Previous HEAD position was bd68264... MB-22602: Add 'ep' as a subdir to engines/ HEAD is now at 5b9d5a4... Move Blob to its own file (blob.{cc.h}) -- Checking out latest kv_engine/master From github.com:couchbase/kv_engine * branch master -> FETCH_HEAD -- Rebasing change onto kv_engine/master << Uploading to Gerrit under kv_engine ** Successfully moved change to kv_engine Change-Id: Ib84265529b2d4834d361c1b2db694fb73e9ab65a Reviewed-on: http://review.couchbase.org/78522 Tested-by: Build Bot <build@couchbase.com> Reviewed-by: Daniel Owen <owend@couchbase.com>
- Loading branch information