git/list[1] front-page[2] threads[3] people[4] search[5] about
 

A case for tailor

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 15, 2005, 18:48 UTC
Message-ID
<Pine.LNX.4.63.0511151931001.1157@wbgn013.biozentrum.uni-wuerzburg.de>
Hi,

I was trying to import a project into git, the upstream of which is managed by Subversion. There has been a flurry of enhancements to git-svnimport, so I thought I´d give it a try.

Short version: it did not work.

Longer version: depending on the argument to "-T", it stopped right away, or it stopped after about 60 commits. Right at the beginning, a lot of warnings told me about some files not being where they were expected.

Possible explanation: at some early stage, the trunk was named "trunk", but somehow (don´t ask me how, I am a fan of git, not svn) renamed to "head".

Well, could also be cygwin, which I am stuck with in my office. 

BTW, I noticed that the manpage tells me that "-t" should be used to specify the trunk, but the program (and it´s usage message) disagree.

Enter tailor. It is a program written in python, which is meant to convert repositories between different SCM formats. It was mentioned some time ago on this list, supports svn import and git export, so I thought I´d give that a try.

Short version: it worked.

Longer version: I had to fix a little bug which made git ignore the author_date (only to find that this had been fixed in the current devel version of tailor), had to make sure .git/info existed, and I added a dirty workaround to git so that empty commits would not lead to a screeching halt of the conversion.

Comparing the speeds, I´d also say that they are comparable, maybe git-svnimport is just a tad faster (until it fscks up).

I am right now trying to convert tailor´s repository (since I don´t like to keep it in the darcs (pun intended) format). However there is still a little problem with darcs, which is probably a problem with the operating system.

Just wanted to let people know...

Ciao, Dscho

Next: Martin Langhoff
Message 1 of 5 in “A case for tailor”
  1. Johannes SchindelinNov 15, 2005
  2. Martin LanghoffNov 15, 2005
  3. Johannes SchindelinNov 15, 2005
  4. Matthias UrlichsNov 16, 2005
  5. Johannes SchindelinNov 17, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.