Remove SHA stability note from readme
[fast-export/barak.git] / hg2git.txt
blob13a2035d7e4d113429ab7a71e79310a91b4d90b8
1 hg2git.(sh|py) - mercurial to git converter using git-fast-import
3 Legal
4 =====
6 The scripts are licensed under the GPL version 2 and were written by
7 Rocco Rutte <pdmef@gmx.net> with hints and help from the git list and
8 #mercurial on freenode.
10 Usage
11 =====
13 Using it is quite simple for a mercurial repository <repo>:
15   mkdir repo-git # or whatever
16   cd repo-git
17   git init
18   hg2git.sh <repo>
20 Incremental imports to track hg repos is supported, too.
22 Notes
23 =====
25 As each git-fast-import run creates a new pack file, it may be required
26 to repack the repository quite often for incremental imports (especially
27 when importing a small number of changesets per incremental import).
29 Design
30 ======
32 hg2git.py was designed in a way that doesn't require a 2-pass mechanism
33 or any prior repository analysis: if just feeds what it finds into
34 git-fast-import. This also implies that it heavily relies on strictly
35 linear ordering of changesets from hg, i.e. its append-only storage
36 model so that changesets hg2git already saw never get modified.
38 Todo
39 ====
41 For incremental imports, handling tags needs to be reworked (maybe):
42 Right now we assume that once a tag is created, it stays forever and
43 never changes. However,
45   1) tags in hg may be removed
46   2) tags may change
48 I'm not yet sure how to handle this and how this interferes with
49 non-hg-based tags in git.
51 The same for branches: They may get removed.
53 For one-time conversions, everything is fine.