dropunused, addunused: Complain when asked to operate on a number that does not correspond to any unused key.

This commit is contained in:
Joey Hess 2013-07-08 16:47:34 -04:00
parent 1412fe0049
commit 207c9f3c4a
3 changed files with 5 additions and 1 deletions

View file

@ -351,7 +351,7 @@ startUnused message unused badunused tmpunused maps n = search
, (unusedTmpMap maps, tmpunused)
]
where
search [] = stop
search [] = error $ show n ++ " not valid (run git annex unused for list)"
search ((m, a):rest) =
case M.lookup n m of
Nothing -> search rest

2
debian/changelog vendored
View file

@ -28,6 +28,8 @@ git-annex (4.20130628) UNRELEASED; urgency=low
* Android: gpg is built without --enable-minimal, so it interoperates
better with other gpg builds that may default to using other algorithms
for encryption.
* dropunused, addunused: Complain when asked to operate on a number that
does not correspond to any unused key.
-- Joey Hess <joeyh@debian.org> Tue, 02 Jul 2013 15:40:55 -0400

View file

@ -8,3 +8,5 @@ What can I do to drop all these unused files eating up i-nodes? Is there a debu
Thanks,
John
> added a message [[done]] --[[Joey]]