[Kde-scm-interest] Script to find forgotten inter-module moves
Matt Rogers
mattr at kde.org
Sat Mar 27 19:35:48 CET 2010
On Monday 22 March 2010 06:30:20 pm Thomas McGuire wrote:
> 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
I think this should be committed to the kde-ruleset repository on Gitorious
--
Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-scm-interest/attachments/20100327/5550530b/attachment.sig
More information about the Kde-scm-interest
mailing list