mirror of
https://github.com/frej/fast-export.git
synced 2026-02-27 06:50:41 +01:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17c8a22066 | ||
|
|
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>.
|
||||
|
||||
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
|
||||
-----
|
||||
|
||||
|
||||
@@ -158,6 +158,7 @@ def sanitize_name(name,what="branch", mapping={}):
|
||||
# work to do manually, write a tool that does it for you.
|
||||
|
||||
def dot(name):
|
||||
if not name: return name
|
||||
if name[0] == '.': return '_'+name[1:]
|
||||
return name
|
||||
|
||||
|
||||
@@ -3,7 +3,22 @@
|
||||
# Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others.
|
||||
# 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=""
|
||||
PFX="hg2git"
|
||||
SFX_MAPPING="mapping"
|
||||
@@ -55,7 +70,7 @@ if test "z$IS_BARE" != ztrue; then
|
||||
# This is not a bare repo, cd to the toplevel
|
||||
TOPLEVEL=$(git rev-parse --show-toplevel) \
|
||||
|| (echo "Could not find git repo toplevel" ; exit 1)
|
||||
cd $TOPLEVEL || exit 1
|
||||
cd "$TOPLEVEL" || exit 1
|
||||
fi
|
||||
GIT_DIR=$(git rev-parse --git-dir) || (echo "Could not find git repo" ; exit 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user