I need to branch from tree A to tree B, but the tree layout and file names on B differs from A.
Branch: I don't see a way to do the the branch directly into the new layout. looks like I need to branch the tree, then move and rename files in B?
Merge: It appears that Vault won't keep track of moved or renamed files in B for future merges. In this case, whenever you merge from B you have to manually specify the filename and location for each file via the GUI merge tool. This is not practical.
Is there some way to script this, or automate this using an API, where you feed it the source and destination pathnames for each file?
- Jim
branch/merge when dest tree layout and filenames differ?
Moderator: SourceGear
A branch is a copy of a portion of the tree, if you want the structure or file names to be different, it probably will take additional steps.
If you provide examples of what you're trying to do, we might have some suggestions.
Branching can be accomplished through the Vault Client API or Command Line Client. Merging branches is best done through the Merge Wizard.
If you provide examples of what you're trying to do, we might have some suggestions.
Branching can be accomplished through the Vault Client API or Command Line Client. Merging branches is best done through the Merge Wizard.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Here's a very simplified example (what I'm really doing involves hundreds of files):
-- source of branch:
dirA
---file2.txt
---dirB
------file1.txt
------file3.txt
-- destination branch:
dir1
---dir2
------file1Renamed.txt
------file2Renamed.txt
------dir3
---------file3Renamed.txt
It appears a command line branch can only branch at the directory level, so it cannot have source and dest filenames differ.
The problem with merging via the wizard is that for each file being merged, I would have to manually specify the dest filename and location.
-Jim
-- source of branch:
dirA
---file2.txt
---dirB
------file1.txt
------file3.txt
-- destination branch:
dir1
---dir2
------file1Renamed.txt
------file2Renamed.txt
------dir3
---------file3Renamed.txt
It appears a command line branch can only branch at the directory level, so it cannot have source and dest filenames differ.
The problem with merging via the wizard is that for each file being merged, I would have to manually specify the dest filename and location.
-Jim