Signed-off-by: Rocco Rutte <pdmef@gmx.net>
#!/bin/sh
-USAGE='[-m max] repo'
+USAGE='[-m max] [--quiet] repo'
LONG_USAGE='Import hg repository <repo> up to either tip or <max>'
ROOT="`dirname $0`"
REPO=""
SFX_MARKS="marks"
SFX_HEADS="heads"
SFX_STATE="state"
+QUIET=""
. git-sh-setup
cd_to_toplevel
shift
MAX="$1"
;;
+ --q|--qu|--qui|--quie|--quiet)
+ QUIET="--quiet"
+ ;;
-*)
usage
;;
"$GIT_DIR/$PFX-$SFX_MARKS" \
"$GIT_DIR/$PFX-$SFX_HEADS" \
"$GIT_DIR/$PFX-$SFX_STATE" \
-| git-fast-import --export-marks="$GIT_DIR/$PFX-$SFX_MARKS.tmp" \
+| git-fast-import $QUIET --export-marks="$GIT_DIR/$PFX-$SFX_MARKS.tmp" \
|| die 'Git fast-import failed'
# move recent marks cache out of the way...