rmurl: New command, removes one of the recorded urls for a file.

This commit is contained in:
Joey Hess 2013-04-22 17:18:53 -04:00
parent 7e23ce6cef
commit 6be815a30c
5 changed files with 41 additions and 1 deletions

View file

@ -54,4 +54,7 @@ setUrlPresent key url = do
logChange key webUUID InfoPresent
setUrlMissing :: Key -> URLString -> Annex ()
setUrlMissing key url = addLog (urlLog key) =<< logNow InfoMissing url
setUrlMissing key url = do
addLog (urlLog key) =<< logNow InfoMissing url
whenM (null <$> getUrls key) $
logChange key webUUID InfoMissing