mirror of
https://github.com/frej/fast-export.git
synced 2026-05-07 08:36:55 +02:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7aa82e8234 | ||
|
|
02bb982dd9 | ||
|
|
c252e6748e | ||
|
|
ac887f310f | ||
|
|
4bb50bb3fb |
12
README.md
12
README.md
@@ -12,6 +12,18 @@ copies some code from the mercurial sources.
|
|||||||
|
|
||||||
The current maintainer is Frej Drejhammar <frej.drejhammar@gmail.com>.
|
The current maintainer is Frej Drejhammar <frej.drejhammar@gmail.com>.
|
||||||
|
|
||||||
|
Support
|
||||||
|
-------
|
||||||
|
|
||||||
|
If you have problems with hg-fast-export or have found a bug, please
|
||||||
|
create an issue at the [github issue tracker]
|
||||||
|
(https://github.com/frej/fast-export/issues). Before creating a new
|
||||||
|
issue, check that your problem has not already been addressed in an
|
||||||
|
already closed issue. Do not contact the maintainer directly unless
|
||||||
|
you want to report a security bug. That way the next person having the
|
||||||
|
same problem can benefit from the time spent solving the problem the
|
||||||
|
first time.
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ def sanitize_name(name,what="branch", mapping={}):
|
|||||||
# work to do manually, write a tool that does it for you.
|
# work to do manually, write a tool that does it for you.
|
||||||
|
|
||||||
def dot(name):
|
def dot(name):
|
||||||
|
if not name: return name
|
||||||
if name[0] == '.': return '_'+name[1:]
|
if name[0] == '.': return '_'+name[1:]
|
||||||
return name
|
return name
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,22 @@
|
|||||||
# Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others.
|
# Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others.
|
||||||
# License: MIT <http://www.opensource.org/licenses/mit-license.php>
|
# License: MIT <http://www.opensource.org/licenses/mit-license.php>
|
||||||
|
|
||||||
ROOT="$(dirname "$(which "$0")")"
|
READLINK="readlink"
|
||||||
|
if command -v greadlink > /dev/null; then
|
||||||
|
READLINK="greadlink" # Prefer greadlink over readlink
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! $READLINK -f "$(which "$0")" 2>&1 > /dev/null; then
|
||||||
|
ROOT="$(dirname "$(which "$0")")"
|
||||||
|
if [ ! -f "$ROOT/hg-fast-export.py" ] ; then
|
||||||
|
echo "hg-fast-exports requires a readlink implementation which knows" \
|
||||||
|
" how to canonicalize paths in order to be called via a symlink."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
ROOT="$(dirname "$($READLINK -f "$(which "$0")")")"
|
||||||
|
fi
|
||||||
|
|
||||||
REPO=""
|
REPO=""
|
||||||
PFX="hg2git"
|
PFX="hg2git"
|
||||||
SFX_MAPPING="mapping"
|
SFX_MAPPING="mapping"
|
||||||
|
|||||||
Reference in New Issue
Block a user