info: Mention when run in a dead repository.
This commit is contained in:
parent
ec198fec83
commit
8bb80748ef
2 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,7 @@ import qualified Types.Remote as Remote
|
|||
import Utility.DataUnits
|
||||
import Utility.DiskFree
|
||||
import Annex.Content
|
||||
import Annex.UUID
|
||||
import Logs.UUID
|
||||
import Logs.Trust
|
||||
import Logs.Location
|
||||
|
@ -111,6 +112,9 @@ start o ps = do
|
|||
|
||||
globalInfo :: InfoOptions -> Annex ()
|
||||
globalInfo o = do
|
||||
u <- getUUID
|
||||
whenM ((==) DeadTrusted <$> lookupTrust u) $
|
||||
earlyWarning "Warning: This repository is currently marked as dead."
|
||||
stats <- selStats global_fast_stats global_slow_stats
|
||||
showCustom "info" $ do
|
||||
evalStateT (mapM_ showStat stats) (emptyStatInfo o)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue