Fixed incorrect reference to XONSH_HIST_SIZE

This commit is contained in:
Marius van Niekerk 2020-08-28 16:45:07 -04:00
parent ee3258e1aa
commit 5157345282
Failed to generate hash of commit
3 changed files with 26 additions and 3 deletions

View file

@ -87,9 +87,9 @@ v0.9.19
* JsonHistoryGC: display following warning when garbage collection would delete "too" much data and don't delete anything.
"Warning: History garbage collection would discard more history ({size_over} {units}) than it would keep ({limit_size}).\n"
"Not removing any history for now. Either increase your limit ($XONSH_HIST_SIZE), or run ``history gc --force``.",
"Not removing any history for now. Either increase your limit ($XONSH_HISTORY_SIZE), or run ``history gc --force``.",
It is displayed when the amount of history on disk is more than double the limit configured (or defaulted) for $XONSH_HIST_SIZE.
It is displayed when the amount of history on disk is more than double the limit configured (or defaulted) for $XONSH_HISTORY_SIZE.
* $LS_COLORS code 'mh' now recognized for (multi) hard-linked files.
* $LS_COLORS code 'ca' now recognized for files with security capabilities (linux only).
* CI step to run flake8 after pytest.

View file

@ -0,0 +1,23 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Fixed incorrect reference to XONSH_HIST_SIZE instead of XONSH_HISTORY_SIZE
**Security:**
* <news item>

View file

@ -162,7 +162,7 @@ class JsonHistoryGC(threading.Thread):
else:
print(
f"Warning: History garbage collection would discard more history ({size_over} {units}) than it would keep ({hsize}).\n"
"Not removing any history for now. Either increase your limit ($XONSH_HIST_SIZE), or run `history gc --force`."
"Not removing any history for now. Either increase your limit ($XONSH_HISTORY_SIZE), or run `history gc --force`."
)
def files(self, only_unlocked=False):