3 ms·
Is there any hope in Pijul of _any_ kind of interoperability with git at all? Back when there used to be some projects still stuck on svn that I wanted to work
by kadoban 6y ago
Is there any hope in Pijul of _any_ kind of interoperability with git at all?
Back when there used to be some projects still stuck on svn that I wanted to work on, I was able to use git locally and just kind of "publish" via svn when I was done.
Would anything like that be possible? That'd be the killer thing for me to be able to give Pijul a real try.
- onetimertwo 6y agoThis.
- pmeunier 6y agoYes! The `pijul git` command allows you to import Pijul repositories by replaying their history. It also works incrementally, meaning that if you already imported a repository, you'll be able to continue new commits. This uses a somewhat naive way of doing things, and can take a very long time on large repositories. One other way of doing it would be to add an "initial change" explicitly saying "I'm coming from Git commit number #SHA1HASH".
- kadoban 6y agoThanks! I'll definitely give that a try, just looking at the docs real quick it sounds pretty doable. I can think of at least twice in the last month that I _think_ this would have saved me some effort, be interesting to give it a go. Cheers!
- gnufx 6y agoFor what it's worth, you can do that with Darcs import/export. I've kept parallel git and hg repos synced that way with a cron job; it could be done with a hook, but that slowed down pushes too much in my case. (Doing that basically assumes one branch, i.e. linear development in Darcs.)