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

Re: Subversion and CM Synergy

From: Steve Greenland <steveg_at_lsli.com>
Date: 2005-02-25 17:12:52 CET

On Fri, Feb 25, 2005 at 03:02:35PM +0200, Pasi.Havia@nokia.com wrote:
> We have been running subversion for some months now and everything has
> gone just great. Now it is time to put things forward again and I was
> given a task to study. We would like to run a script once a day that
> would take HEAD source from subversion's trunk and commit it to our CM
> Synergy (also known as Continuus) version control. Can anyone give me
> any pointers for this?

1. svn export URLtoTrunk mytrunk
2. [synchronize your CM Synergy working copy to mytrunk, invoking any necessary
CM Synergy commands to add, delete or rename files]
3. commit the CM Synergy tree.

Obviously, step 2 is the tricky one. So long as no files are
added/renamed/deleted, it's pretty easy, of course. Otherwise, it's not.

You might look at svn_load_dirs for inspiration.

Um, why are you doing this? Because if people are still working in CM
Synergy, then this will be a *really* *hard* problem. You might
get somewhere by replacing step 1 with

  svn diff -r<whatever yesterday's revision was>:HEAD URLtoTrunk

and then applying the patch to the CM synergy tree, but I sure wouldn't
use the result without looking at it.

Do you expect to get the history data (change logs, etc.) from
subversion into CM Synergy? Again, much harder, I expect.

This is one of those tasks that I think you need to nail down the actual
requirements ("Why are we doing this?" "What do we expect to be able to
do with the result") before you actually start any coding.

Steve

-- 
"Outlook not so good." That magic 8-ball knows everything! I'll ask
about Exchange Server next.
                           -- (Stolen from the net)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 25 17:16:04 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.