summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2010-06-27 23:11:37 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2010-06-27 23:11:37 +0200
commit96c183fe4c622c7c2d9b1a2a5413baf622369328 (patch)
treea53d2f203860313118d1b7f5bb7df383a34725fb
parent731ecf0257e9860c0e0d36722150d9a36d4743ae (diff)
downloadpython-fastimport-96c183fe4c622c7c2d9b1a2a5413baf622369328.tar.gz
x2d: pass options to d-f-i
-rwxr-xr-xexporters/darcs/x2d8
-rw-r--r--exporters/darcs/x2d.txt4
2 files changed, 10 insertions, 2 deletions
diff --git a/exporters/darcs/x2d b/exporters/darcs/x2d
index 61c66ef..398103d 100755
--- a/exporters/darcs/x2d
+++ b/exporters/darcs/x2d
@@ -62,6 +62,12 @@ case $format in
;;
esac
+common_opts=""
+while [ -n "$2" ]
+do
+ common_opts="$common_opts $1"
+ shift 1
+done
origin="$1"
shift 1
@@ -77,7 +83,7 @@ fmark="$origin.darcs/_darcs/fast-import/ffi-marks"
mkdir -p $origin.darcs
cd $origin.darcs
-common_opts="--logfile $origin.darcs/_darcs/fast-import/log"
+common_opts="$common_opts --logfile $origin.darcs/_darcs/fast-import/log"
pypath="/$(python -c 'from distutils import sysconfig; print sysconfig.get_python_lib()[1:]')/"
if [ ! -f $dmark ]; then
diff --git a/exporters/darcs/x2d.txt b/exporters/darcs/x2d.txt
index eb2ec34..25ed6bb 100644
--- a/exporters/darcs/x2d.txt
+++ b/exporters/darcs/x2d.txt
@@ -6,7 +6,7 @@ x2d - convert git, bzr or hg repos to a darcs one using fast-export
== SYNOPSIS
-x2d -f <format> <otherrepo>
+x2d -f <format> [<importoptions>] <otherrepo>
== DESCRIPTION
@@ -24,3 +24,5 @@ importer's standard input.
-f <format>::
Specify the format of the source repo. Currently supported sources are
git, bzr and hg. Incremental conversion is supported for all of them.
+
+The rest of the options is directly passed to darcs-fast-import.