Hi,
We are working on migration of subfolders of a SVN repository . By opting for manual configuration, the content of the repository is migrated but not the history and only last commit appears on the GIT repository.
By opting for automatic configuration, we can see the commit history but not the content in the branches and only .gitignore file appears on all the migrated branches.
Parent SVN Repo path: https://svn.dts.fm.rbsgrp.net/TradeSurveillance/ (Attached is the screenshot - SVNParentRepo)
The path taken for migration https://svn.dts.fm.rbsgrp.net/TradeSurveillance/StrategicTradeSurveillance/CEP.NetCore
trunk under this path should go to master branch on GIT repo
branches should go to branches on GIT
Below are the mappings that we have used-
SVN URL was set to https://svn.dts.fm.rbsgrp.net/TradeSurveillance/
Scenario 1 (manual configuration)-
trunk = StrategicTradeSurveillance/CEP.NetCore/trunk:refs/heads/master
branches = StrategicTradeSurveillance/CEP.NetCore/branches/:refs/heads/
Scenario 2 (automatic configuration)-
trunk = StrategicTradeSurveillance/CEP.NetCore/trunk:refs/heads/master
branches = StrategicTradeSurveillance/CEP.NET/branches/*:refs/heads/*
branches = StrategicTradeSurveillance/CEP.NET/trunk:refs/heads/StrategicTradeSurveillance/CEP.NET
branches = StrategicTradeSurveillance/CEP.NET/branches/STS-13274/CEP_Trunk:refs/heads/StrategicTradeSurveillance/CEP.NET_1/STS-13274/CEP_Trunk
branches = StrategicTradeSurveillance/CEP.NET/branches/STS-13274_NEW/CEP_Trunk:refs/heads/StrategicTradeSurveillance/CEP.NET_1/STS-13274_NEW/CEP_Trunk
branches = StrategicTradeSurveillance/branches/10.3:refs/heads/StrategicTradeSurveillance/10.3
branches = StrategicTradeSurveillance/CEP.NetCore/branches/*:refs/heads/StrategicTradeSurveillance/CEP.NetCore/*
branches = StrategicTradeSurveillance/CEP.NET/*:refs/heads/StrategicTradeSurveillance/CEP.NET_1/*
branches = StrategicTradeSurveillance/CEP.NET/branches/STS-13783_New/*:refs/heads/StrategicTradeSurveillance/CEP.NET_1/STS-13783_New/*
tags = tags/*/CEP.NetCore/trunk:refs/tags/*
shelves = shelves/*/CEP.NetCore/trunk:refs/shelves/*
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/Projects
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/STS-11396-TestCases
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/STS-12381
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/STS-12384
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/STS-13781_New
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/WallCrossing
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/WallCrossing_Monitoring
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/converted_.netcore
excludeBranches = StrategicTradeSurveillance/CEP.NET/tags
excludePath = /
excludePath = /9.7
excludePath = /CEP_Trunk
excludePath = /LatestTrunk
excludePath = /trunk
Attaching screenshots of GIT repos from both the scenarios
Also attaching the svn mirror logs for both the scenarios and the svn repo logs for the parent repo.
Thanks
svnmirror.log_scenario2 (2.8 MB) svnmirror.log_scenario1 (434.0 KB)
We are facing issues in attaching the svn repo log. Is there any limit to the file size?
Hello
yes, the size limit is 50Mb. I see two files svnmirror.log_scenario2 (2.8 MB)
and svnmirror.log_scenario1 (434.0 KB)
which appear to be log files; but I haven’t found screenshots you mentioned.
Hello,
the fact the first scenario does not bring the full history only showing a single commit makes me to believe that some reconfiguration (directories moves/renamings) was performed not a long time ago,
probably, in the latest revision or in the revision right before the latest. That is the reason why scenario 1 does not deliver the history – the old paths should also be present in the branches mapping in order to trace the history through renaming in SVN.
In scenario 2 those old paths are added in the branches mapping, not sure if all of them, but if the history is being shown correctly, then the mapping is precise enough. It does not include current branches, however (those in trategicTradeSurveillance/CEP.NetCore/branches/
directory) and the excludePath = /
setting actually removes all the content from the branches, indeed, that’s the reason why only .gitignore file appears on all the migrated branches. So to address those two issue, the mapping can be changed like this:
trunk = StrategicTradeSurveillance/CEP.NetCore/trunk:refs/heads/master
branches = StrategicTradeSurveillance/CEP.NetCore/branches/*:refs/heads/*
branches = StrategicTradeSurveillance/CEP.NET/branches/*:refs/heads/*
branches = StrategicTradeSurveillance/CEP.NET/trunk:refs/heads/StrategicTradeSurveillance/CEP.NET
branches = StrategicTradeSurveillance/CEP.NET/branches/STS-13274/CEP_Trunk:refs/heads/StrategicTradeSurveillance/CEP.NET_1/STS-13274/CEP_Trunk
branches = StrategicTradeSurveillance/CEP.NET/branches/STS-13274_NEW/CEP_Trunk:refs/heads/StrategicTradeSurveillance/CEP.NET_1/STS-13274_NEW/CEP_Trunk
branches = StrategicTradeSurveillance/branches/10.3:refs/heads/StrategicTradeSurveillance/10.3
branches = StrategicTradeSurveillance/CEP.NetCore/branches/*:refs/heads/StrategicTradeSurveillance/CEP.NetCore/*
branches = StrategicTradeSurveillance/CEP.NET/*:refs/heads/StrategicTradeSurveillance/CEP.NET_1/*
branches = StrategicTradeSurveillance/CEP.NET/branches/STS-13783_New/*:refs/heads/StrategicTradeSurveillance/CEP.NET_1/STS-13783_New/*
tags = tags/*/CEP.NetCore/trunk:refs/tags/*
shelves = shelves/*/CEP.NetCore/trunk:refs/shelves/*
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/Projects
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/STS-11396-TestCases
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/STS-12381
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/STS-12384
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/STS-13781_New
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/WallCrossing
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/WallCrossing_Monitoring
excludeBranches = StrategicTradeSurveillance/CEP.NET/branches/converted_.netcore
excludeBranches = StrategicTradeSurveillance/CEP.NET/tags
excludePath = /9.7
excludePath = /CEP_Trunk
excludePath = /LatestTrunk
excludePath = /trunk
It’s not completely clear if the excludePath
settings affect currently used branches; if they do, then it may worth to remove particular excludePath
to have the directory imported.