Solved

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

Posted on 2010-08-25
4
492 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 400 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: I have always been a big fan of Windows but my liking towards it is slowly being eroded by the variety of other Applications that I encounter, when I browse the Web. Most of the software available is free and maybe Open Source too. …
When working in a large software development team, whether you have many developers working on the same projects, or your project is linked to other projects; it is very important that developers regularly perform "get latest" to ensure that the cha…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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). …

622 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