# HG changeset patch # User IBBoard # Date 1700076525 0 # Node ID cfdd6905e45385ff35a3c488367815a6cfa46619 # Parent bb0e1239a6113092f6338608426cef1d04e71aa5 Include untracked files in custom HG Prompt diff -r bb0e1239a611 -r cfdd6905e453 bashrc --- a/bashrc Sun Nov 12 09:04:28 2023 +0000 +++ b/bashrc Wed Nov 15 19:28:45 2023 +0000 @@ -69,7 +69,7 @@ HG_ROOT=$(rhg root 2>/dev/null) if [[ "x$HG_ROOT" != "x" ]]; then HG_BRANCH=$(<"${HG_ROOT}"/.hg/branch) - HG_MODIFIED=$([ "$(rhg status -mard | head -c1)" ] && echo " *") + HG_MODIFIED=$([ "$(rhg status -marud | head -c1)" ] && echo " *") HG_INCOMING_PATH="${HG_ROOT}"/.hg/prompt/cache/incoming HG_OUTGOING_PATH="${HG_ROOT}"/.hg/prompt/cache/outgoing if [[ ! -f "${HG_INCOMING_PATH}" || $(($(date +%s) - $(date -r "${HG_INCOMING_PATH}" +%s 2>/dev/null || echo 0) )) -gt $HG_CACHE_TIMEOUT ]]; then