debuggery

This commit is contained in:
Joey Hess 2012-07-29 14:10:17 -04:00
parent c4023f7858
commit ce7889ba86

View file

@ -190,6 +190,13 @@ safeToAdd st changes = runThreadState st $
tmpdir <- fromRepo gitAnnexTmpDir tmpdir <- fromRepo gitAnnexTmpDir
openfiles <- S.fromList . map fst3 . filter openwrite <$> openfiles <- S.fromList . map fst3 . filter openwrite <$>
liftIO (Lsof.queryDir tmpdir) liftIO (Lsof.queryDir tmpdir)
liftIO $ debug thisThread
[ "checking changes:"
, show changes
, "vs open files:"
, show openfiles
]
let checked = map (check openfiles) changes let checked = map (check openfiles) changes