sapling/eden/scm/contrib
Tao Zhao b54708627b scm-prompt.sh: optionally show dirty state of working directory
Summary:
Added an optional feature to scm-prompt.sh to show the dirty state of the working directory.

Users need to opt in by set the environmental variable `SHOW_DIRTY_STATE` to yes (or whatever nonempty string) in their shell rc file. The idea is that users who do not need/want this feature should see minimal performance hit of their prompt.

Unfortunately, in some (large) repos, calling `hg status` or `git diff` to figure out the dirty state can slow down showing the prompt quite a bit. So, in this case, user can opt out individual repo by setting `shell.showDirtyState` in .hg/hgrc or .git/config.

Reviewed By: ahornby

Differential Revision: D21493543

fbshipit-source-id: 13f7cf2dd2f8d00b58cf2a63dc2cbbf770028411
2020-05-28 10:24:52 -07:00
..
chg py3: chg: fix compatibility 2020-02-03 18:26:57 -08:00
hgsh Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
python2-winbuild Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
vim Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
whochanges Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
xdiff use absolute includes to the third-party xdiff code 2020-02-19 13:05:06 -08:00
bdiff-torture.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
check-code.py infinitepush: remove legacy auto pull logic 2020-05-14 12:47:35 -07:00
check-config.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
check-py3-compat.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
clang-format-blacklist Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
dirstatenonnormalcheck.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
editmergeps.bat Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
editmergeps.ps1 Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
fix-code.py check-code: convert to Python 3 2020-05-07 09:07:50 -07:00
git-sl git-sl: remove Mercurial import 2020-04-02 12:32:34 -07:00
hg-ssh Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
hg-test-mode.el Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
mercurial.el Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
perf.py treestate: make treestate a hard requirement 2020-03-16 18:39:52 -07:00
python-hook-examples.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
scm-prompt.sh scm-prompt.sh: optionally show dirty state of working directory 2020-05-28 10:24:52 -07:00
synthrepo.py py3 iteritems -> pycompat.iteritems 2020-02-04 15:29:39 -08:00
traceprof.py check-code: convert to Python 3 2020-05-07 09:07:50 -07:00
zsh_completion Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00