Share Branch issues
Moderator: SourceGear
Share Branch issues
Vault 3.1.0 (3494)
I have a repository with a folder in the root as such:
$/Project 1
I then shared the entire folder to another folder in the root as such
$/Project 1
$/Project 2
I now need to make some Project 2 specific changes to a file that is a few levels down in the hierarchy:
$/Project 2/test/newfolder/filetochange.txt
When I try to branch the file, its making me to a Copy Branch rather than a Share Branch. Obviously I cannot do this because an object with the same name already exists in that location as that is where it was shared to. How do I get it to allow me to do a Share Branch in a sub folder? Attempting to Share Branch the root Project 2 folder does properly bring up the Shar Branch dialog, but I do not want to branch the entire project, just specific files.
Any ideas?
I have a repository with a folder in the root as such:
$/Project 1
I then shared the entire folder to another folder in the root as such
$/Project 1
$/Project 2
I now need to make some Project 2 specific changes to a file that is a few levels down in the hierarchy:
$/Project 2/test/newfolder/filetochange.txt
When I try to branch the file, its making me to a Copy Branch rather than a Share Branch. Obviously I cannot do this because an object with the same name already exists in that location as that is where it was shared to. How do I get it to allow me to do a Share Branch in a sub folder? Attempting to Share Branch the root Project 2 folder does properly bring up the Shar Branch dialog, but I do not want to branch the entire project, just specific files.
Any ideas?
In the scenario you described, the only thing that is shared is the folder. That is why the Share Branch dialog is brought up on the folder, and copy branch is brought up on the file. There is only one version of the file, modifying one would modify the other.
One way you could get the kind of behavior you want is to delete the share, create a bunch of folders (similar to the original folder structure), and then share the files into each folder.
Another option would be to copy branch the folder. When you want to make sure the files are the same, merge branches to syncrhonizes changes between the branches.
We do have a feature request which would allow you to either share a folder or create new similar folder structure, and recusrively share files. Would you want me to add your name to this request list?
One way you could get the kind of behavior you want is to delete the share, create a bunch of folders (similar to the original folder structure), and then share the files into each folder.
Another option would be to copy branch the folder. When you want to make sure the files are the same, merge branches to syncrhonizes changes between the branches.
We do have a feature request which would allow you to either share a folder or create new similar folder structure, and recusrively share files. Would you want me to add your name to this request list?
Jeff Clausius
SourceGear
SourceGear
Yes please do!
Given that the two projects most likely won't ever be merged makes your first sugggestion would be much less workable for this situation.
Having several thousand source files among several hundred sub folders in the project would make having to go through the process of sharing each folders contents manually a real nightmare.
Given that the two projects most likely won't ever be merged makes your first sugggestion would be much less workable for this situation.
Having several thousand source files among several hundred sub folders in the project would make having to go through the process of sharing each folders contents manually a real nightmare.
It isn't really the number of files, but the number of folders. You can share more than one file at a time, so it would really be a matter of creating the directory structure, and then executing one share operation for all files in each folder.
Tedious work, but somewhat manageable.
I'll add your name to the feature request.
Tedious work, but somewhat manageable.
I'll add your name to the feature request.
Jeff Clausius
SourceGear
SourceGear
-
- Posts: 25
- Joined: Wed Apr 21, 2004 3:10 pm
my two cents
I need to accomplish the same thing that Mithril describes.
Your proposed solutions seem convoluted and inadequate.
Sharing a folder is an awesome feature of Vault (VSS sucked here). I don't want to have to manage changes as files and folders are added/removed from the parent folder.
I think your proposed new feature misses the point.
Regards,
Travis
Your proposed solutions seem convoluted and inadequate.
Sharing a folder is an awesome feature of Vault (VSS sucked here). I don't want to have to manage changes as files and folders are added/removed from the parent folder.
I think your proposed new feature misses the point.
Regards,
Travis
-
- Posts: 25
- Joined: Wed Apr 21, 2004 3:10 pm
can you do both
Ok - but can I do both
See below. I want to share folderX between multiple projects. And in a specific project I want to not share config.xml
folderX
folderY
config.xml
See below. I want to share folderX between multiple projects. And in a specific project I want to not share config.xml
folderX
folderY
config.xml
-
- Posts: 25
- Joined: Wed Apr 21, 2004 3:10 pm
continued ...
exactly my point - that is a less than ideal solution.
I then am not sharing folder X - I get the functionality of VSS - it sucked.
If my two cents are worth it I would strongly request a feature that solves the issue Mithril and I describe.
Your proposed solution is NOT a solution it is a hack.
The scenario we describe is very common in SCM - so I would wager a guess that many users would benefit.
Reards,
Travis
I then am not sharing folder X - I get the functionality of VSS - it sucked.
If my two cents are worth it I would strongly request a feature that solves the issue Mithril and I describe.
Your proposed solution is NOT a solution it is a hack.
The scenario we describe is very common in SCM - so I would wager a guess that many users would benefit.
Reards,
Travis
Re: continued ...
Regardless, quite a few customers would like to see this functionality.travis_thelen wrote:I then am not sharing folder X - I get the functionality of VSS - it sucked.
Branching and merging is the easiest way to manager this in a controlled manner.travis_thelen wrote:The scenario we describe is very common in SCM
I honestly do not have a solution to solve Mithril's problem without branching. I'll log any feature requests.travis_thelen wrote:If my two cents are worth it I would strongly request a feature that solves the issue Mithril and I describe.
Jeff Clausius
SourceGear
SourceGear
Ok - then my feature request is as follows:
I will repeat mithril's example
I have a repository with a folder in the root as such:
$/Project 1
I then shared the entire folder to another folder in the root as such
$/Project 1
$/Project 2
I now need to make some Project 2 specific changes to a file that is a few levels down in the hierarchy:
$/Project 2/test/newfolder/filetochange.txt
I want a feature available on filetochange.txt called SHARE-BRANCH that will allow me to modify this file independent of the one in Project 1
I will repeat mithril's example
I have a repository with a folder in the root as such:
$/Project 1
I then shared the entire folder to another folder in the root as such
$/Project 1
$/Project 2
I now need to make some Project 2 specific changes to a file that is a few levels down in the hierarchy:
$/Project 2/test/newfolder/filetochange.txt
I want a feature available on filetochange.txt called SHARE-BRANCH that will allow me to modify this file independent of the one in Project 1
I'll log this as a feature request. Basically, you want to be able to branch individual files within a shared folder so that they can be edited independently of each other. Technically, the folders will no longer be shared (share in Vault denotes all changes in one are reflected in the other), so we'll have to come up with an other name.I want a feature available on filetochange.txt called SHARE-BRANCH that will allow me to modify this file independent of the one in Project 1
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager