gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] Arch2git import script


From: Martin Langhoff
Subject: [Gnu-arch-users] Arch2git import script
Date: Thu, 25 Aug 2005 17:05:39 +1200

Is anyone else playing with git? I have a work-in-progress import
script that may be of interest. Started last weekend on a boring ferry
trip, it's evolving in the evenings.

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). Imports are reasonably fast,
about ~1s per changeset on slow hardware.

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 address@hidden sears-ldap--dev

It now:
 - handles commit timestamps correctly
 - handles binary files correctly
 - uses parselog() to tell git-update-cache what's been
added/deleted/modified - much faster commits on large trees
 - gets the commit msgs mostly ok

In my immediate TODO:
 - handling renames
 - branches opening in the right place
 - incremental import

A bit further off:
 - file modes
 - merge detection

cheers,


martin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]