-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only CC main branch code is migrated for all the branches. #96
Comments
@yogeshdimble do you mind expanding on how you're migrating each branch one by one? I should warn you, git-cc isn't really multi-branch aware. You can add the following to your gitcc config to try and include changes to both main and branch_1, but I don't know if that's what you're looking for.
Each branch ends up as a completely different git commit tree, so there's no easy way (that I know) of merging all the branches in to a single repo correctly. :( |
Hi charleso, Thanks for quick reply. Now 1st thing I did not understood how the clearcase lists the history. CC lists the full branch history (including branching history) of the file and not limits it upto that file. I tried running gitcc by adding branches =main|branch_1 in the .git/gitcc cofig file. It worked little bit. the files modified from branch_1 are now correctly came to the migrated code. But not rest of the files. In my work there is high level of branching used. The code is derived and merged from multiple branches. So do I need to mention multiple branches in the config file? Thanks!! |
Hi @yogeshdimble . Firstly I should warn you that I probably can't do much to help you with this. I don't really maintain this library any more, and it's been a very long time since I used Clearcase. My only suggestion in this case would be to grab a copy of the lshistory stream for a particular file, and maybe a copy of the config spec, and post it here for analysis. Sorry I can't help any more than that. |
Hello @yogeshdimble , I might be late to help but still want to share my approach of "customizing" the rebase process with git-cc. At first execution, git-cc creates a file .git/lshistory.bak in your repository, which holds the CC history. In subsequent runs, you can re-use this file with the parameter --load .git/lshistory.bak . You could do the following to filter the changes that you want to rebase:
The modding of lshistory.bak turns out to be also very useful in some other edge-cases as well :) |
Hi,
I am moving many branches from CC to GIT, one by one manually. This task is completed for all branches.
Now while validation what I found is that all branch code in GIT is same. After checking deeper it is found that gitcc lists full history of a file, but while migration only main branch code is copied to GIT. It does not contains that branch specific code.
If "branch is created from main branch" OR "created from other branch which is created from main", then only versions from main branch are checked in to GIT but the versions from that branch are not part of the migration.
I have not made any changes to config file.
Config file .git/gitcc looks like:
[master]
Clearcase=
Could you please help me on this? My aim is copy the branch specific code. i.e. From the branch is created from other/main branch upto the end of that branch.
Let me know if you need more information.
Thanks and Regards,
Yogesh Dimble
The text was updated successfully, but these errors were encountered: