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.DataUnits
|
||||||
import Utility.DiskFree
|
import Utility.DiskFree
|
||||||
import Annex.Content
|
import Annex.Content
|
||||||
|
import Annex.UUID
|
||||||
import Logs.UUID
|
import Logs.UUID
|
||||||
import Logs.Trust
|
import Logs.Trust
|
||||||
import Logs.Location
|
import Logs.Location
|
||||||
|
@ -111,6 +112,9 @@ start o ps = do
|
||||||
|
|
||||||
globalInfo :: InfoOptions -> Annex ()
|
globalInfo :: InfoOptions -> Annex ()
|
||||||
globalInfo o = do
|
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
|
stats <- selStats global_fast_stats global_slow_stats
|
||||||
showCustom "info" $ do
|
showCustom "info" $ do
|
||||||
evalStateT (mapM_ showStat stats) (emptyStatInfo o)
|
evalStateT (mapM_ showStat stats) (emptyStatInfo o)
|
||||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -6,6 +6,7 @@ git-annex (6.20160218) UNRELEASED; urgency=medium
|
||||||
tree.
|
tree.
|
||||||
* fsck: When the only copy of a file is in a dead repository, mention
|
* fsck: When the only copy of a file is in a dead repository, mention
|
||||||
the repository.
|
the repository.
|
||||||
|
* info: Mention when run in a dead repository.
|
||||||
|
|
||||||
-- Joey Hess <id@joeyh.name> Thu, 18 Feb 2016 13:09:21 -0400
|
-- Joey Hess <id@joeyh.name> Thu, 18 Feb 2016 13:09:21 -0400
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue