diff options
-rwxr-xr-x | exporters/darcs/x2d | 8 | ||||
-rw-r--r-- | exporters/darcs/x2d.txt | 4 |
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. |