[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Help setting up Subversion..

From: Joseph Silverman <yossie_at_laszlosystems.com>
Date: 2005-01-12 17:40:27 CET

So, here's my situation:

a) I have a large perforce depot PART of which I want to "mirror" in a
subversion repository. I would then like to keep the repository up to
date with the depot.
b) I don't want to "mirror" everything in the depot (perforce), just
parts of it (the "public" parts) - these parts are spread around in it
(differentiated by filename and location in the directory structure),
not in a single directory tree.
c) Ideally, I would like to initially import all the files in a single
"commit" so that the version number in subversion is 1 for these.

I have (perforce) synced down the whole depot into a local copy (we
have this for other purposes) and want to use it as my "working copy"
for subversion.

Initially, when I try to simply add a bunch of files out of this local
copy and then do a single commit I get a lot of errors about not having
a "working copy".
When I try to do a bunch of mkdir's on the depot, and then add's, I get
errors about the directories already existing!

I am stuck in this process.

As for keeping the depot and repository synchronized - the plan was to
analyze the perforce changes to figure out what might have changed and
for all files that are supposed to be in subversion.

This process would be applied to the local copy of the perforce depot
each time a perforce change was submitted (post submit) in perforce:

1) files that were edited in perforce will simply be added to a list to
be committed in subversion
2) if a file was added in perforce, I will simply "add" it in
subversion and add it to the commit list
3) if a file was deleted in perforce, I will "delete" it in subversion
and add it to the commit list
4) if a file was branched and then deleted in perforce, I will "rename"
it in subversion, and add it to the commit list
5) if a file was branched from a file that isn't supposed to be in
subversion, I'll simply "add" it to the commit list
6) if the file was branched from and to a file in subversion and not
deleted, I will "copy" it and add it to the commit list
7) the entire commit list will be committed in a single subversion

Subversion has issues with deleting files that aren't in the "working
copy" (which is how it would be after the perforce submit was done), or
rename files after they have been branch/deleted in perforce, or add
new files in new directories, if they already exist (which they would,
post a perforce submit). There are other "error" conditions too.

Does anyone have any idea on how to, and/or code, to do the above?

THANKS - Yossie

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 12 17:43:32 2005

This is an archived mail posted to the Subversion Users mailing list.