devel: implement --retain-history option
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 10 Apr 2014 12:23:09 +0000 (15:23 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 10 Apr 2014 12:23:09 +0000 (15:23 +0300)
commit3b5c2e55e6c9d783a1d8c61ef7ee9ddd3ea5d72e
tree0cf937d1b3d8c77643b54f2c60fda9eb0689593b
parent3f587e026bec83992cf024065841417c9929bb9d
devel: implement --retain-history option

With this option defined gbs tries to preserve the history of the
changes (since upstream) doing a convert. Basically, for each commit in
the old branch a corresponding commit in the new orphan packaging branch
is created. This works by dumping packaging files and updating patches
for each commit.  However, empty commits are not generated - these are
caused e.g. by changes files that are ignored by patch-generation like
.gbs.conf.

NOTE! Only valid for the 'convert' action.

Change-Id: I669fa6732bea7940561f5c99820d6d97d14b0658
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gitbuildsys/cmd_devel.py
tools/gbs