Skip to contentSkip to conversation

arch2git import script

DISCUSSION Martin Langhoff 1 participant 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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 [email protected] 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

#1 lore raw
Quoted 1 line · Martin Langhoff

First draft of an Arch import.

And now, with sample script attached, too.

cheers,

martin