[Kde-scm-interest] Problem with svn2git
Sebastian Dörner
sebastian at sebastian-doerner.de
Thu Jun 21 22:30:12 UTC 2012
On 13 June 2012 15:11, Torgny Nyblom <nyblom at kde.org> wrote:
> On Sunday 10 June 2012 19.15.43 Sebastian Dörner wrote:
>> Dear list,
>>
>> I started writing git conversion rules for KDESDK, starting with the
>> dolphin-plugins repository. The svn plugin started out in the core of
>> dolphin in kdebase, and some of the rules should take care of that.
>> While this all worked pretty well for trunk, I have some problems with
>> tags and branches, and I have no idea anymore why it fails. I would be
>> grateful if someone experienced could have a look at this problem.
>>
> Try and do the conversion with rule debugging turned on, it will produce a lot of out put but you'll see exactly what is happening and why.
I was working on another repository meanwhile, but now hit the same
thing again (hardcoded KDE-version for testing purposes):
match /(branches|tags)/KDE/[^/]+/kdesdk/doc/(scripts/)?$
action recurse
end match
match /branches/KDE/4.2/kdesdk/doc/scripts/man-demangle.1.docbook
repository ${REPO}
prefix doc/kmtrace/man-demangle.1.docbook
branch KDE/4.2
end match
The recurse action works, but in the end the file itself is not
matched and I don't know why. The log looks like this:
rev 906699 /branches/KDE/4.2/kdesdk/doc/ matched rule:
"kde-ruleset/kdesdk/kde-dev-utils-rules:21
/(branches|tags)/KDE/[^/]+/kdesdk/doc/(scripts/)?$" recursing.
rev 906699 /branches/KDE/4.2/kdesdk/doc/scripts/ matched rule:
"kde-ruleset/kdesdk/kde-dev-utils-rules:21
/(branches|tags)/KDE/[^/]+/kdesdk/doc/(scripts/)?$" recursing.
rev 906699 /branches/KDE/4.2/kdesdk/kpartloader/ matched rule:
"kde-ruleset/kdesdk/../common-kde-branches-rules-match-files:20
/branches/KDE/(\d+)\.(\d+)/kdesdk/kpartloader/" exporting.
I know you should have a / at the end of the path, but this is the
only way for files. And it does work for trunk strangely (also seen in
other rule files):
match /trunk/KDE/kdesdk/doc/scripts/(man-demangle.1.docbook)
repository ${REPO}
branch master
prefix doc/kmtrace/\1
min revision 409203
end match
Maybe I should start debugging the tool...
>
> /Regards
> Torgny
> _______________________________________________
> Kde-scm-interest mailing list
> Kde-scm-interest at kde.org
> https://mail.kde.org/mailman/listinfo/kde-scm-interest
More information about the Kde-scm-interest
mailing list