Sponsored Content
Top Forums UNIX for Advanced & Expert Users CVS: move part of repository (branch) to SVN server Post 302213159 by +Yan on Wednesday 9th of July 2008 10:54:43 AM
Old 07-09-2008
Quote:
Originally Posted by cbkihong
However, if I have not misinterpreted the documentation for cvs2svn, that does not appear to have an option for migrating a CVS branch only. My understanding is in CVS, unlike in SVN that a branch is a copy and just works like the trunk except on a separate tree, CVS branches are rooted with a revision on the parent branch and it will not be very surprising to me if indeed cvs2svn does not support migrating a branch only directly.

Correct me if I am wrong.

I guess the original poster already knows about cvs2svn because that is mostly the way to convert a CVS repo to SVN ....
Yes I do know about cvs2svn.

First of all it turns out that the person which requires the SVN conversion is marketing director. So we reviewed what he NEEDS exacty and ...

We solved the problem in not very sciantific way ...
Here is how:
1. I copied one part of the things that we need to cvsroot/tmp/svn directory
then used simple bash script with cp and cvs rtag commands to delete all unnecessery branches and tags .. (I got the branches / tags from cvsweb interface)
2. copied second part, and repeated 1, then tirth part ... and so on ...

3. After long time of copy / cvs rtag -d (allmost 24h ).... we had one not very big (approx. 1G) repository in cvsroot/tmp/svn.
This repository was compressed, and sent to my colege, for SVN transformation on remote server.

My personal conclusion:
Before proceed, make sure you know that the person that wants huge changes to well working (and proven) system knows what he / she wants Smilie)

Cheers.
 

10 More Discussions You Might Find Interesting

1. Solaris

backup repository in cvs

dears does any one know how can i take backup for reposirory in cvs ?? (9 Replies)
Discussion started by: murad.jaber
9 Replies

2. Shell Programming and Scripting

Extraction of latest files from cvs repository

Hi everyone.. Anybody having idea to get the latest file from CVS repository through schell scripts. Thanks in advance. Regards shahid Bakshi (4 Replies)
Discussion started by: shahidbakshi
4 Replies

3. Programming

How to create a new file in a CVS repository

I have a coding project that I'm working on, and I'm tracking revisions using CVS. I'm working on a branch (branch1) at version 1.1.2.1. Anyway, I created a new C file in the directory for the project, but I can't commit it. The tutorial I read on CVS said that version numbers will be assigned... (6 Replies)
Discussion started by: Ultrix
6 Replies

4. Shell Programming and Scripting

Find and move files parsed from cvs file

I need help with a bash script. We have a directory of files which need to be renamed and moved to another directory based on filename information in a cvs file. The contents of the cvs file are as follows: A102345,abc123 A102347,dfg475 Where dfg475 is the basename without extension Our... (8 Replies)
Discussion started by: Lloyd Boyette
8 Replies

5. Solaris

How to integrate SVN client to SVN server repository.

Hi, I am new to SVN configuration on Solaris 10.I have installed SVN client version 1.7. bash-3.00# ./svn --version svn, version 1.7.4 (r1295709) compiled Mar 2 2012, 12:59:36 Here my requirement is how to integrate svn client to One of the SVN server repository. My repository... (0 Replies)
Discussion started by: muraliinfy04
0 Replies

6. UNIX for Advanced & Expert Users

Copy files from SVN Server

Hi, We have a SVN server on which the developers upload their source code which is in the form of a .ear file or a folder. We login to the SVN server using our credentials and then go to the directory in which the application is placed and then click on the download link to download the... (6 Replies)
Discussion started by: mohtashims
6 Replies

7. UNIX for Dummies Questions & Answers

Access of Microsoft Team Foundation Server (TFS) repository from Unix Server

Hello, Some of our application team uses Microsoft Team Foundation server (TFS) reposity tool for their .NET projects , I would like to access it form Unix/Linux machine. Please let me know how can access the TFS from unix. Thanks (0 Replies)
Discussion started by: posix
0 Replies

8. Red Hat

CVS repository connecting error in Linux 5.3

Hi Friends, I configured CVS Repository in RHEL 5.3 Server. But connecting the CVS Repository get the error like. # cvs -d:pserver:cvs@localhost:/backup/cvs/cvsrep login Logging in to :pserver:cvs@localhost:2401/backup/cvs/cvsrep CVS password: cvs : connect to :2401 failed: Connection... (0 Replies)
Discussion started by: srinivas814
0 Replies

9. Web Development

Svn repository relocation

Hi, I have a svn setup with multiple code repositories. Recently the filesystem holds the repository got full and i wanted to have to move some code repositories to another filesystem. I copied some of the code repositored using the "mv" command to another filesystem and created a symlink with... (1 Reply)
Discussion started by: arumon
1 Replies

10. UNIX for Advanced & Expert Users

Trying to figure out the CVS repository server.

We have an issue where we are able to check out files from unix however not from windows. On Unix I have the cvs host set to /home/group/CVSROOT but when I try and access the folder from windows I get an exception that the server refuses connection. On unix the CVSROOT is a filer and not the... (0 Replies)
Discussion started by: jjohnson
0 Replies
SVN-ALL-FAST-EXPORT(1)					      General Commands Manual					    SVN-ALL-FAST-EXPORT(1)

NAME
svn-all-fast-export - tool to convert svn repositories into git SYNOPSIS
svn-all-fast-export [options] [Path to subversion repository] DESCRIPTION
svn-all-fast-export is a tool to convert your svn repositories to git. You will need to have a copy of your svn repository and to write some rules to specify how the conversion will be done, for instance, you can manage how the tags and branches will be managed writing the appropriate rules. You have examples in /usr/share/doc/svn-all-fast- export/samples Path to subversion repository is a backup copy of the subversion repository. Note that an svn url will not work due to the undistributed nature of svn. OPTIONS
--identity-map Provide map between svn username and email. You can provide a file mapping the old svn accounts to the authors names. This file must have a line per each svn account, you can use either the svn-all-fast-export native format: janesvnaccountname Jane Doe <jane.doe@example.com> or the git-svn format: janesvnaccountname = Jane Doe <jane.doe@example.com> --revisions-file Provide a file with revisions numbers that should be processed. This file should have one revision number per line. --rules The rules file that determines what goes where. See /usr/share/doc/svn-all-fast-export/samples --add-metadata If passed, each git commit will have svn commit info. --resume-from Start importing at svn revision number. --max-rev Stop importing at svn revision number. --dry-run Don't actually write anything. --debug-rules Print what rule is being used for each file. --commit-interval number If passed the cache will be flushed to git every number of commits. --stats After a run, print some statistics. --svn-branches Use the content of SVN when creating branches, Note: SVN tags are branches as well. -h, --help Show summary of options. -v, --version Show version of program. RETURN VALUES
This program returns 0 on success, on error something else (numbers in base 10): 10 unrecognized option or missing argument 11 no rules file specified BUGS
All matching rules need to end with a '/', else the tool will crash at some point. The only exception are the rules using the recurse- action. HOMEPAGE
http://gitorious.org/svn2git SEE ALSO
http://techbase.kde.org/Projects/MoveToGit/UsingSvn2Git AUTHORS
svn-all-fast-export was written by Thiago Macieira and Thomas Zander. April 25, 2010 SVN-ALL-FAST-EXPORT(1)
All times are GMT -4. The time now is 10:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy