Git Product home page Git Product logo

Comments (3)

charleso avatar charleso commented on August 22, 2024

Hi Phil,

I'm afraid not. As you've discovered the branches configuration will basically filter the commits into a single git branch. Things in Clearcase get very complicated when you start talking about merging largely because it doesn't have the concept of an atomic commit. I wish I could have got this working as you've described; believe me when I say I spent a fair bit of time thinking about it. The closest I got was in the Java version of git-cc which I wrote just at the end of my Clearcase days.

This is the file/branch in question (the cleartool branch only):

https://github.com/charleso/gitcc4j/blob/cleartool/ClearGit/src/gitcc/cmd/Rebase.java

I used this version to import our repository into Git as part of a final migration (which is why I don't work on git-cc any more). Part of the problem was that I used 'git merge --strategy=ours' to fake the merges, and the history was all messed up as a result.

If you're familiar with Java that might be a good place to start, otherwise I'm afraid there isn't much you can do. There is also the Clearvision import tool, but that comes at a price. :(

Cheers,

Charles

from git-cc.

philpem avatar philpem commented on August 22, 2024

That's fair enough -- I'm trying out a two-step approach now - Polarion's Clearcase-to-Subversion translator apparently supports branches so I'm using that, then converting the SVN repository to Git.

Perhaps a little convoluted but hopefully it'll do what I need :)

Thanks,
Phil.

from git-cc.

charleso avatar charleso commented on August 22, 2024

Ahh, I'd forgotten about that. I remember looking at that back when I first stated. If it does branches properly then that's a much better option. If it does, please let me know so I can recommend it to other people.

Good luck.

Charles

from git-cc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.