You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Vijayakumar Subburaj <vi...@gmail.com> on 2010/01/05 11:32:05 UTC
working with multiple svn branches
Which is the best way to work with multiple svn branches (say 10) ?
1. keep separate local repositories and development environment
for each branches in development machine
ex:
~/branch1/...
~/branch2/...
~/branch3/...
.............
~/branch10/...
2. keep one local repository and development environment, and then
update it with currently required branch, then do complete build
every time you start work on new issues
ex:
~/project/...
Please let me know, even if there are any other ways.
--
Thanks and Regards,
Vijayakumar Subburaj
Re: working with multiple svn branches
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 5, 2010, at 13:32, Bob Archer wrote:
>> Is it possible to create "local svn repository" (not "working copy"
>> here) for few svn branches in my desktop ? I don't want entire branch
>> from version 1-1000 in my local svn repository, but just head, as I
>> always (so far) work with head version. Whenever needed I can first
>> update (?) this local svn repository from central svn repository, and
>> then update / switch my devenv from here, before doing complete build.
>
> Sorry.. there is only 1 repository. You don't have a remote and a local repository. When you do a check out (create a working copy) you only will get the head revision).
>
> You can checkout only 1 branch though... you realize you don't need to check out the full repository right?
>
>> is this preferable approach when compared to "svn switch" directly
>> from central svn repository ?
>
> This is what I do, I check out trunk and each branch I am working out separately. I personally don't like switch because it is easy to forget which branch you are switched to.
>
> I'm not sure if you understand the difference between a repository and a working copy. I think if you had a clear understanding of each you wouldn't say you want a "local repository".
If you really do want a local repository, then that's what svk does, so you can look into that:
http://svk.bestpractical.com/
RE: working with multiple svn branches
Posted by Bob Archer <Bo...@amsi.com>.
>On Tue, Jan 5, 2010 at 8:00 PM, Bob Archer <Bo...@amsi.com> wrote:
>>>Which is the best way to work with multiple svn branches (say 10) ?
>...
>> I assume you mean "working copy" rather than "local repository"???
>> IF so, it's a matter of preference. I prefer to have each branch
>> checked out individually rather than using the switch command. But YMMV.
>
>svn switch is exactly what I need.
>
>Is it possible to create "local svn repository" (not "working copy"
>here) for few svn branches in my desktop ? I don't want entire branch
>from version 1-1000 in my local svn repository, but just head, as I
>always (so far) work with head version. Whenever needed I can first
>update (?) this local svn repository from central svn repository, and
>then update / switch my devenv from here, before doing complete build.
Sorry.. there is only 1 repository. You don't have a remote and a local repository. When you do a check out (create a working copy) you only will get the head revision).
You can checkout only 1 branch though... you realize you don't need to check out the full repository right?
>is this preferable approach when compared to "svn switch" directly
>from central svn repository ?
This is what I do, I check out trunk and each branch I am working out separately. I personally don't like switch because it is easy to forget which branch you are switched to.
I'm not sure if you understand the difference between a repository and a working copy. I think if you had a clear understanding of each you wouldn't say you want a "local repository".
BOb
Re: working with multiple svn branches
Posted by Vijayakumar Subburaj <vi...@gmail.com>.
On Tue, Jan 5, 2010 at 8:00 PM, Bob Archer <Bo...@amsi.com> wrote:
>>Which is the best way to work with multiple svn branches (say 10) ?
...
> I assume you mean "working copy" rather than "local repository"???
> IF so, it's a matter of preference. I prefer to have each branch
> checked out individually rather than using the switch command. But YMMV.
svn switch is exactly what I need.
Is it possible to create "local svn repository" (not "working copy"
here) for few svn branches in my desktop ? I don't want entire branch
from version 1-1000 in my local svn repository, but just head, as I
always (so far) work with head version. Whenever needed I can first
update (?) this local svn repository from central svn repository, and
then update / switch my devenv from here, before doing complete build.
is this preferable approach when compared to "svn switch" directly
from central svn repository ?
RE: working with multiple svn branches
Posted by Bob Archer <Bo...@amsi.com>.
>Which is the best way to work with multiple svn branches (say 10) ?
>
>1. keep separate local repositories and development environment
> for each branches in development machine
>
> ex:
>
> ~/branch1/...
> ~/branch2/...
> ~/branch3/...
> .............
> ~/branch10/...
>
>2. keep one local repository and development environment, and then
> update it with currently required branch, then do complete build
> every time you start work on new issues
>
> ex:
>
> ~/project/...
>
>Please let me know, even if there are any other ways.
I assume you mean "working copy" rather than "local repository"??? IF so, it's a matter of preference. I prefer to have each branch checked out individually rather than using the switch command. But YMMV.
BOb