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

arch2git import script

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Aug 23, 2005, 13:11 UTC
Message-ID
<46a038f90508230611337c695e@mail.gmail.com>

First draft of an Arch import. Very limited but will import one "branch" into one head. The basics are for it to follow branches, and some support for marking merges (or at least what git would consider merges.

TODO:
- proper branch switching
- binary file handling
- get the date format right!
- parse the output of cat-archive-log to know what files to add/delete
and cleanup the logmsg
- ensure all shell invocations have error handling
- allow multiple "Archives"
- learn to run repeatedly over the same git repo, importing only new commits
- track cherrypicking to identify how far branches are merged (in the
git sense)
- a few options as to how to follow (or not) the history
  - follow a full branch starting from a full import "down" with
branches opening from it.
  - follow a branch history "up"
An example invocation to import the sears-ldap-dev branch is:
  mkdir sample-import
  cd sample-import;
  git-archimport-script -t /tmp/some/dir -i \
      -A arch-eduforge@catalyst.net.nz--2004 sears-ldap--dev

the commit message needs cleanup, the dates are bogus, and we aren't marking deletes... but it otherwise works great! ;)

cheers,
martin
Next: Martin Langhoff
Message 1 of 2 in “arch2git import script”
  1. Martin LanghoffAug 23, 2005
  2. Martin LanghoffAug 23, 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.