Nov 09

Attention all Drupal Git-mirror users

A public service announcement on the status of the mirrors of Drupal CVS maintained on Github.

A long-standing issue with the Git mirrors of Drupal's CVS has been fixed thanks to Damien Tournoud.

The problem is that CVS outputs dates in RCS tags in the somewhat nonstandard format 2009/10/19 (cvsps, that updates the RCS tags to use the correct format (2009-10-19). Adhering to standards is generally a good thing, but in this case it was causing merge conflicts when trying to merge patches created with Git into Drupal (or vice versa).

Damien found a way to resolve the issue, however:

Adding DateFormat=old to the CVSROOT/config file fixes the problem.

Changing this, however, required a reimport of the entire repository. Due to the way Git works with commit-ids being a cryptographic hash of their contents, changing the contents (even if just the RCS tags) means a rewrite of Git history.

So while the new repository contains the same code, you will not be able to merge new changes from it into your current checkouts. Damien will continue both imports for a while, but updates for the old repository with the incompatible date format will be discontinued at a future date.

What is the bottom line then?

The executive summary

  1. The Git mirror at git://github.com/drupal/drupal.git has been rewritten with it's RCS tag date format compatible with CVS defaults. Please use this mirror for all your future projects.
  2. The Git mirror at git://github.com/mikl/drupal.git will continue to have the CVS-incompatible format, and will, for a time, continue to be updated, so you will be able to use it for a little while longer.
  3. There is now no excuse for not using Git for your Drupal core development work. Enjoy.

Finally, I'd like to thank Damien for doing all the hard work. I was maintaining the git-cvsimport process myself for a while, and I do not miss it.

  • sun
    Nov. 9, 2009

    Awesome!

    Do you happen to know the state of the git.drupalfr.org repositories?

    I know they are maintained by Damien, but you only mentioned github...

  • Nov. 10, 2009

    Damien told me git.drupalfr.org is sync'ed with cvs.drupal.org every 10 mins. the github repo seems to be already outdated in comparison to git.drupalfr.org (last update 25 h ago). The new date git uri is git://git.drupalfr.org/git/core/new-date.git but it is still under testing

  • Nov. 10, 2009

    The Github repositories merely mirrors the ones on git.drupalfr.org. The repository with the fixed dates is git://git.drupalfr.org/git/core/new-date.git

    I missed a step while reconfiguring the repositories yesterday, causing one of the repositories not to be updated automatically. That is now fixed, and there should now at most be a couple of minutes delay between Github and git.drupalfr.org :)

  • Nov. 11, 2009

    That's awesome.

    Thank you for your work, guys.

About

I am Mikkel Høgh. I have been a web developer for about 8 years. I have my own company, Reveal IT, a long with a couple of friends. We specialize in helping our customers build awesome web sites with open source tools like Drupal and Django.

Subscribe

Elsewhere

Categories

Recent Posts

Archive

BlogRoll

Popular Posts