svnsync

How to migrate a codebase from one svn repo to another preserving history?

一个人想着一个人 提交于 2019-12-07 03:46:06
问题 I have a branch in a badly structured svn repo that needs to be stripped out and moved to another svn repository. (I'm trying to clean it up some). If I do an svn log and not stop on copy/rename I can see all 3427 commits that I care about. Is there some way to dump the revisions out, short of writing some major scripts? I would follow the advice in this question but this branch has been moved all over the place and I would like to preserve the moves as well. 回答1: I guess this might be

How to skip initial revisions in svnsync sync (to fix broken repository)

血红的双手。 提交于 2019-12-06 12:03:47
I want to sync/copy a single project out of a moderate large SVN repo using the (usual) sequence svnadmin create %mirror% rem make insecure dummy hook echo rem dummy > %mirror%\hooks\pre-revprop-change.bat svnsync init %mirror_url% http://svn/original/... svnsync sync %mirror_url% This works but takes long time, see related question . In fact I do not need any revisions prior to e.g. r=17830. And the real problem is that the original repo seems to be corrupt before this revision and I can't convert it to hg, so I try to workaround ... Question: Is there a way to fake the newly created repo

Remove specific files from revision history

夙愿已清 提交于 2019-12-04 01:40:47
问题 I am trying to remove specific files from the revision history that I did not mean to commit. Can someone provide a way to do this? 回答1: You'll need to use svndumpfilter tool. The procedure involves dumping your repository, filtering (with svndumpfilter ) your dumpfile, and reloading the results into a new repository. See this chapter in the SVNBook for details. 回答2: Besides the filtering repository dump with svndumpfilter there is another solution that allows you to get rid of specific files

Synchronize an SVN repo (svnsync) with encoding errors

限于喜欢 提交于 2019-12-03 16:06:49
Is it possible to fix/bypass non-UTF8 encoded svn:log records when synchronizing repositories with svnsync ? Background I'm in the process of taking over the maintenance of an open source module that is stored within a large (well over 10,000 revisions) subversion (1.5.5) repository. I do not have admin access to the remote repository to dump/filter/load the module. The old repository is being discontinued and I am trying to sync the original sub module to my local (1.6+) repository with svnsync. For example: svnsync file://home/svn/temp-repo/ http://path.to.repo/modulename/ The problem is

How to convert Windows path to file: URL, in a batch file, suitable for SVN command line use

断了今生、忘了曾经 提交于 2019-12-01 08:30:52
In a Windows-based SVN installation (using CollabNet Subversion Edge), I have a post-commit hook batch file where I construct a repository folder name, and I need to call svnsync with a file: URL pointing to that Windows folder. The question now is: How can I convert a Windows folder or file name to a file: URL, in such a way that that URL is at least acceptable for the SVN command line tools? In a batch file, if the variable FILE_OR_FOLDER_NAME contains the (absolute or relative, local or UNC, with or without spaces, existing or not existing) Windows file or directory name, then the following