Hi, with svn2git, moves and copies between modules are not detected by default, one has to write rules for it. It is easy to lose bits of history, since some of the rules can be overlooked and forgotten.
I wrote a small script that checks if the history is still intact, which I
attached. The idea is that it looks at the last revision in git log and svn
log and compares the two, they should be identical.
This works in the test kdepimlibs repo, since the SVN revision number is added
to the end of the log, like in
"svn path=/trunk/KDE/kdepimlibs/; revision=1095521".
Usage of the script:
You need a Git checkout and a SVN checkout in the same directory. Let's say
the Git checkout is named kdepimlibs-git and the SVN checkout is named
kdepimlibs-SVN. Then invoke the script with:
check_svn2git kdepimlibs-git kdepimlibs-svn | tee svn2git.log
You need to source the script before.
You should see something like:
Now checking .emacs-dirvars...
WARNING: Git history of .emacs-dirvars not complete:
Last SVN revision: 311286. Last GIT revision: 564681
Now checking .kateconfig...
OK
Now checking .krazy...
OK
In this example. you can see that the copying in r564681 was missed in the
rules. (yes, not a good example as it is not an important file, but it was the
first one in the listing).
I hope some of you will find this useful.
Regards,
Thomas
script.sh
Description: application/shellscript
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Kde-scm-interest mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-scm-interest
