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

find repository path in working copy?

From: Martin Hauner <hauner_at_web.de>
Date: 2004-12-05 21:08:43 CET

Hi,

I would like to automatically fill the target folder for a merge in
subcommanders (a gui client for subversion) merge dialog. Lets assume
we want to do a simple merge (just one source for the merge). In sc
(subcommander) it is done by selecting the source repository path
(this can be any path inside the branch) from a tree view and selecting
merge from the context menu. The merge dialog will appear with the
merge source (the selected entry from the tree view) filled in. You can
now select the revision(s) and set the target working copy path for the
merge.

I would like to automatically fill the target working copy too.
I know the root of the working copy that is the target for the merge.

An example:

repository

svn://machine/repos/branches/branch1/folder2/folder3/file3
svn://machine/repos/trunk/folder2/folder3/file3

working copy

localpath/trunk <=> the repository path is svn://machine/repos/trunk

Now i want to merge folder3 from the branch

svn://machine/repos/branches/branch1/folder2/folder3

into the working copy. The target path for the merge would be

localpath/trunk/folder2/folder3

I select merge on svn://machine/repos/branches/branch1/folder2/folder3
and it is preset as merge source in the dialog. Now i want to
automatically set the target wc path to localpath/trunk/folder2/folder3.

I know that the wc root is localpath/trunk.

But how do I map from svn://machine/repos/branches/branch1/folder2/folder3
to localpath/trunk/folder2/folder3 ?

How can i do this?

Maybe it is possible to map the repository branch path to its repository
trunk path (it was copied from) and then search that repository trunk path
in the wc entries files?

-- 
Martin (http://subcommander.tigris.org, a subversion gui client)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 5 21:09:10 2004

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

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