/export-surround-to-git

Python script to export history from Seapine Surround in a format parsable by `git fast-import`

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

export-surround-to-git

Python script to export history from Seapine Surround in a format parsable by git fast-import.

This method is capable of preserving complete history, timestamps, authors, comments, branches, snapshots, etc.

Usage

usage: export-surround-to-git.py [-h] [-m MAINLINE] [-p PATH] [-d DATABASE]
                                 [--version]
                                 [command]

Exports history from Seapine Surround in a format parsable by `git fast-import`.

positional arguments:
  command

optional arguments:
  -h, --help            show this help message and exit
  -m MAINLINE, --mainline MAINLINE
                        Mainline branch containing history to export
  -p PATH, --path PATH  Path containing history to export
  -d DATABASE, --database DATABASE
                        Path to local database (only used when resuming an
                        export)
  --version             show program's version number and exit

Example flow

sscm setclient ...
git init my-new-repo
cd my-new-repo
export-surround-to-git.py -m Sandbox -p "Sandbox/Merge Test" | git fast-import --stats --export-marks=marks.txt
...
git repack ...

Further Reading

See the manpage for git fast-import.