whoops, I the debug prints
This commit is contained in:
parent
f92fd1b1e4
commit
bf3133ebb0
1 changed files with 1 additions and 6 deletions
|
@ -71,14 +71,9 @@ changeLockPool a = do
|
||||||
withExclusiveLock :: (Git.Repo -> FilePath) -> Annex a -> Annex a
|
withExclusiveLock :: (Git.Repo -> FilePath) -> Annex a -> Annex a
|
||||||
withExclusiveLock getlockfile a = do
|
withExclusiveLock getlockfile a = do
|
||||||
lockfile <- fromRepo getlockfile
|
lockfile <- fromRepo getlockfile
|
||||||
liftIO $ hPutStrLn stderr (show ("locking", lockfile))
|
|
||||||
liftIO $ hFlush stderr
|
|
||||||
createAnnexDirectory $ takeDirectory lockfile
|
createAnnexDirectory $ takeDirectory lockfile
|
||||||
mode <- annexFileMode
|
mode <- annexFileMode
|
||||||
r <- bracketIO (lock lockfile mode) unlock (const a)
|
bracketIO (lock lockfile mode) unlock (const a)
|
||||||
liftIO $ hPutStrLn stderr (show ("unlocked", lockfile))
|
|
||||||
liftIO $ hFlush stderr
|
|
||||||
return r
|
|
||||||
where
|
where
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
lock lockfile mode = do
|
lock lockfile mode = do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue