mirror of
https://github.com/frej/fast-export.git
synced 2026-05-07 01:05:44 +02:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19aa906308 | ||
|
|
50dc10770b | ||
|
|
90483e02e5 |
@@ -33,7 +33,8 @@ Using hg-fast-export is quite simple for a mercurial repository <repo>:
|
|||||||
mkdir repo-git # or whatever
|
mkdir repo-git # or whatever
|
||||||
cd repo-git
|
cd repo-git
|
||||||
git init
|
git init
|
||||||
hg-fast-export.sh -r <repo>
|
hg-fast-export.sh -r <local-repo>
|
||||||
|
git checkout HEAD
|
||||||
```
|
```
|
||||||
|
|
||||||
Please note that hg-fast-export does not automatically check out the
|
Please note that hg-fast-export does not automatically check out the
|
||||||
|
|||||||
@@ -153,9 +153,13 @@ def sanitize_name(name,what="branch", mapping={}):
|
|||||||
# modifying names which previously were not touched it will break
|
# modifying names which previously were not touched it will break
|
||||||
# preexisting setups which are doing incremental imports.
|
# preexisting setups which are doing incremental imports.
|
||||||
#
|
#
|
||||||
# Use the -B and -T options to mangle branch and tag names
|
# Fast-export tries to not inflict arbitrary naming policy on the
|
||||||
# instead. If you have a source repository where this is too much
|
# user, instead it aims to provide mechanisms allowing the user to
|
||||||
# work to do manually, write a tool that does it for you.
|
# apply their own policy. Therefore do not add a transform which can
|
||||||
|
# already be implemented with the -B and -T options to mangle branch
|
||||||
|
# and tag names. If you have a source repository where this is too
|
||||||
|
# much work to do manually, write a tool that does it for you.
|
||||||
|
#
|
||||||
|
|
||||||
def dot(name):
|
def dot(name):
|
||||||
if not name: return name
|
if not name: return name
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ $(
|
|||||||
exec 4>&3 3>&1 1>&4 4>&-
|
exec 4>&3 3>&1 1>&4 4>&-
|
||||||
{
|
{
|
||||||
_e1=0
|
_e1=0
|
||||||
GIT_DIR="$GIT_DIR" $PYTHON "$ROOT/hg-fast-export.py" \
|
GIT_DIR="$GIT_DIR" "$PYTHON" "$ROOT/hg-fast-export.py" \
|
||||||
--repo "$REPO" \
|
--repo "$REPO" \
|
||||||
--marks "$GIT_DIR/$PFX-$SFX_MARKS" \
|
--marks "$GIT_DIR/$PFX-$SFX_MARKS" \
|
||||||
--mapping "$GIT_DIR/$PFX-$SFX_MAPPING" \
|
--mapping "$GIT_DIR/$PFX-$SFX_MAPPING" \
|
||||||
|
|||||||
Reference in New Issue
Block a user