threads / discuss / 1623

arch2git import script

Subject: arch2git import script

## tl;dr

2 messages between Aug 23, 2005 and Aug 23, 2005.

replies: 1people: 1as markdown or json

Martin Langhoff· Aug 23, 2005, 13:11 UTC · lore

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

← back to recent threads