Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How can I work on a Subversion branch in a different repository?

Posted on 2010-08-25
4
Medium Priority
?
496 Views
Last Modified: 2013-11-25
I would like to make a fairly major change to a publicly-available project tracked by Subversion, but I do not have commit privileges on the public repository.  I do, however, have my own Subversion repository so I would like to store my version of the project there.  The important functionality I want to retain is the ability to merge changes to the public trunk to the "branch" stored on my repository.  What is the best way to do this?  If possible, I would like to do this with the TortoiseSVN client.

I have tried to "Merge a range of revisions" in TortoiseSVN while leaving the revision range blank, but this generates conflicts even on files that I have not changed (but have been changed in the public trunk).
0
Comment
Question by:bjp1662
  • 2
4 Comments
 
LVL 2

Expert Comment

by:jaredboone
ID: 33633967
This is not possible using TortoiseSVN. There are perl and python versions of a script called svn-merge-repos.
0
 
LVL 7

Expert Comment

by:sailingbye
ID: 33638114
I believe svn externals will do what you want [1].  It allows you to define an 'external' repository for part of your working copy, such that when you update your working copy, updates are automagically pulled from all repositories.

I'm sorry, but I don't have any experience of using it with TortoiseSVN.

[1] http://svnbook.red-bean.com/en/1.0/ch07s03.html
0
 

Author Comment

by:bjp1662
ID: 33639203
sailingbye, that is definitely a useful feature, but I don't think it solves the problem of of being able to merge changes in a remote repository with changes in a local repository.

jaredboone, I was afraid of that.  I'm looking into the script you suggest, but so far it seems like it's intended more as a one-time-use way to integrate two disparate projects into one repository rather than a way to effectively merge different versions of the same files from different repositories -- am I misreading the description?

I'm surprised a tool for doing this sort of thing isn't more prominent; it seems like anyone who wants to make their own changes to an open-source project (which they don't have commit access to) while keeping up with changes to the public open-source project would need something like this.
0
 
LVL 7

Accepted Solution

by:
sailingbye earned 1600 total points
ID: 33645590
>but I don't think it solves the problem of of being
>able to merge changes in a remote repository
>with changes in a local repository.

I'm confident it does. When you perform an update, Subversion will merge changes from the repository with local changes if possible, in exactly the same way that it does with a repository that you do have permission to commit to. If a merge is not possible then a conflict occurs and you resolve it in exactly the same way.

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to set permissions to allow a limited-permissions user to start and stop a particular System Service.   It is always best to give users only the permissions that they need to perform their job, so tweaking particular permi…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question