Ver Fonte

Make history progress timestamps compact

cere há 1 mês atrás
pai
commit
ed5569f8ed
1 ficheiros alterados com 7 adições e 7 exclusões
  1. 7 7
      svn_interact/svn_git_sync

+ 7 - 7
svn_interact/svn_git_sync

@@ -114,7 +114,7 @@ simple_export() {
 }
 
 init_git_repo() {
-  echo "[$(elapsed) s] Initializing git repository..."
+  echo "[$(elapsed)s] Initializing git repository..."
   GIT_QUIET=1 git init >/dev/null
   git config init.defaultBranch trunk || true
   git config core.fileMode false || true
@@ -123,13 +123,13 @@ init_git_repo() {
 
   # Seed ignores for common noise (pyc/cache)
   if [[ ! -e .gitignore ]]; then
-    echo "[$(elapsed) s] Adding default ignores (.pyc/__pycache__)..."
+    echo "[$(elapsed)s] Adding default ignores (.pyc/__pycache__)..."
     printf "*.pyc\n__pycache__/\n" > .gitignore
   fi
 }
 
 link_git_to_source() {
-  echo "[$(elapsed) s] Linking git metadata to source working tree..."
+  echo "[$(elapsed)s] Linking git metadata to source working tree..."
   DEST_ABS="$(pwd -P)"
   cd "$SRC_DIR"
   if [[ -e .git || -L .git ]]; then
@@ -139,7 +139,7 @@ link_git_to_source() {
   printf "gitdir: %s/.git\n" "$DEST_ABS" > .git
   echo "[$(elapsed)s] Linked .git to $DEST_ABS/.git"
 
-  echo "[$(elapsed) s] Syncing working tree to repo content..."
+  echo "[$(elapsed)s] Syncing working tree to repo content..."
   GIT_QUIET=1 git checkout -q -- .
 }
 
@@ -213,7 +213,7 @@ sync_wc_to_dest() {
 
 checkout_with_progress() {
   local rev="$1"
-  echo "[$(elapsed) s] Checking out r${rev}..."
+  echo "[$(elapsed)s] Checking out r${rev}..."
   rm -rf -- "$WC_DIR"
   mkdir -p "$WC_DIR"
   svn checkout -q -r "$rev" "$SRC_URL" "$WC_DIR" &
@@ -270,7 +270,7 @@ build_commit_msg() {
 }
 
 build_commit_msg "$start_rev"
-  echo "[$(elapsed) s] Copy: $COMMIT_PROGRESS"
+  echo "[$(elapsed)s] Copy: $COMMIT_PROGRESS"
 stage_and_commit "$COMMIT_SUBJECT" "$COMMIT_BODY" 0 "$COMMIT_PROGRESS"
 
 if (( ${#REV_LIST[@]} > 1 )); then
@@ -278,7 +278,7 @@ if (( ${#REV_LIST[@]} > 1 )); then
     svn update -q -r "$rev" "$WC_DIR"
     sync_wc_to_dest
     build_commit_msg "$rev"
-    echo "[$(elapsed) s] Copy: $COMMIT_PROGRESS"
+    echo "[$(elapsed)s] Copy: $COMMIT_PROGRESS"
     stage_and_commit "$COMMIT_SUBJECT" "$COMMIT_BODY" 1 "$COMMIT_PROGRESS"
   done
 fi