# arch2git import script

2 messages from 2005-08-23 to 2005-08-23. Participants: Martin Langhoff.
Thread: https://gitlist.dev/t/1623

## Martin Langhoff, 2005-08-23 13:11

Subject: arch2git import script
Message-ID: <46a038f90508230611337c695e@mail.gmail.com>
URL: https://gitlist.dev/e/46a038f90508230611337c695e%40mail.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

```

## Martin Langhoff, 2005-08-23 13:13

Subject: Re: arch2git import script
Message-ID: <46a038f90508230613527c11c8@mail.gmail.com>
URL: https://gitlist.dev/e/46a038f90508230613527c11c8%40mail.gmail.com
In-Reply-To: <46a038f90508230611337c695e@mail.gmail.com>

```
On 8/24/05, Martin Langhoff <martin.langhoff@gmail.com> wrote:
> First draft of an Arch import. 

And now, with sample script attached, too. 

cheers,


martin

```
