I have two different files each with its own history, I want to unite them as one, but keep both histories.
For example (My actual issue):
I have x.vcproj and x.vcxproj, after converting from older visual studio to a newer one (I don't even remember any more which ones these were).
Basically after the conversion we stopped using the old format all together.
What should have been done back then, is to write a script that goes over all converted projects (before adding anything to clearcase):
- Checkout the
x.vcprojand its containing folder. - Rename the
x.vcxprojto some temporary file, let sayx.vcxproj.temp - Use
cleartoolto renamex.vcprojtox.vcxproj - Overwrite
x.vcxprojwith thex.vcxproj.temp - Check in the
x.vcxprojfile.
This would have done the trick back then, but it has not been done, and now most of the <Project Name>.vcxproj already have their own extensive history.
Can the history of these two files be united and some how simulate the above flow?
Visual Example:
From:
x.vcproj x.vcxproj
[main] [main]
| |
(0) (0)
| \ | \
| \ | \
| (0) [v1] | (0) [v2]
| | | |
| (1) | (1) <<- First Node of x.vcxproj
| | \ | |
| (2) \ (1)<(2)
| | (0) [v1.1] | | \
(1)<(3) | | | \
| (1) | | (0) [v2.1]
| | | | |
(2)<----(2) (2)<(3)<(2)
| | |
(3) (3)<----(3)
| \ |
| \ (4)
| (0) [v2] | \
| | | \
(4)<(1) <<- Last node of x.vcproj | (0) [v3]
| |
(5)<(1)
I want to get the following resulting tree:
x.vcproj -+-> x.vcxproj
[main]
|
(0)
| \
| \
| (0) [v1]
| |
| (1)
| | \
| (2) \
| | (0) [v1.1]
(1)<(3) |
| (1)
| |
(2)<----(2)
|
(3)
| \
| \
| (0) [v2]
| |
(4)<(1) <<- Last node of x.vcproj
| |
| (2) <<- First Node of x.vcxproj
| | Original Node (1) of [v2]
(5)<(3)
| | \
| | \
| | (0) [v2.1]
| | |
(6)<(4)<(2)
| |
(7)<----(3)
|
(8)
| \
| \
| (0) [v3]
| |
(9)<(1)