Merge branch 'master' into assistant
Conflicts: GitAnnex.hs
This commit is contained in:
commit
75e8690cca
18 changed files with 365 additions and 7 deletions
|
@ -5,6 +5,8 @@
|
|||
- Licensed under the GNU GPL version 3 or higher.
|
||||
-}
|
||||
|
||||
{-# LANGUAGE CPP #-}
|
||||
|
||||
module GitAnnex where
|
||||
|
||||
import System.Console.GetOpt
|
||||
|
@ -58,8 +60,10 @@ import qualified Command.Import
|
|||
import qualified Command.Map
|
||||
import qualified Command.Upgrade
|
||||
import qualified Command.Version
|
||||
#ifdef WITH_ASSISTANT
|
||||
import qualified Command.Watch
|
||||
import qualified Command.Assistant
|
||||
#endif
|
||||
|
||||
cmds :: [Command]
|
||||
cmds = concat
|
||||
|
@ -101,8 +105,10 @@ cmds = concat
|
|||
, Command.Map.def
|
||||
, Command.Upgrade.def
|
||||
, Command.Version.def
|
||||
#ifdef WITH_ASSISTANT
|
||||
, Command.Watch.def
|
||||
, Command.Assistant.def
|
||||
#endif
|
||||
]
|
||||
|
||||
options :: [Option]
|
||||
|
|
2
Makefile
2
Makefile
|
@ -14,7 +14,7 @@ endif
|
|||
|
||||
PREFIX=/usr
|
||||
IGNORE=-ignore-package monads-fd -ignore-package monads-tf
|
||||
BASEFLAGS=-Wall $(IGNORE) -outputdir tmp -IUtility -DWITH_S3 $(BASEFLAGS_OPTS)
|
||||
BASEFLAGS=-Wall $(IGNORE) -outputdir tmp -IUtility -DWITH_ASSISTANT -DWITH_S3 $(BASEFLAGS_OPTS)
|
||||
GHCFLAGS=-O2 $(BASEFLAGS)
|
||||
CFLAGS=-Wall
|
||||
|
||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -1,6 +1,8 @@
|
|||
git-annex (3.20120625) UNRELEASED; urgency=low
|
||||
|
||||
* cabal: Only try to use inotify on Linux.
|
||||
* Version build dependency on STM, and allow building without it,
|
||||
which disables the watch command.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Mon, 25 Jun 2012 11:38:12 -0400
|
||||
|
||||
|
|
2
debian/control
vendored
2
debian/control
vendored
|
@ -21,7 +21,7 @@ Build-Depends:
|
|||
libghc-bloomfilter-dev,
|
||||
libghc-edit-distance-dev,
|
||||
libghc-hinotify-dev [linux-any],
|
||||
libghc-stm-dev,
|
||||
libghc-stm-dev (>= 2.3),
|
||||
ikiwiki,
|
||||
perlmagick,
|
||||
git,
|
||||
|
|
19
doc/bugs/Issue_on_OSX_with_some_system_limits.mdwn
Normal file
19
doc/bugs/Issue_on_OSX_with_some_system_limits.mdwn
Normal file
|
@ -0,0 +1,19 @@
|
|||
I was dumping ~gigs of files of approximately 3-6megs a pop (my music collection) so I could track the files that I want to listen to when I'm on the go. I had the git watch command running from the assistant branch.
|
||||
|
||||
I was getting something along the lines of...
|
||||
|
||||
/Users/jtang/annex/.git/annex/tmp/: openTempFile: resource exhausted (Too many open files)
|
||||
|
||||
and
|
||||
|
||||
git-annex: createPipe: resource exhausted (Too many open files)
|
||||
|
||||
I also noticed that I somehow ended up with 256 ssh-agent's running on one of my machines, I'm not sure if the two issues are related or not, I had not noticed this type of behaviour up until recently.
|
||||
|
||||
Also this was appearing in the logs
|
||||
|
||||
x00:annex jtang$ tail -f .git/annex/daemon.log
|
||||
(scanning...) Already up-to-date.
|
||||
kqueue: Too many open files
|
||||
|
||||
To be precise, I suspect that the kqueue limit is 256, I had 325 files in the 'queue', I ended up doing a _git annex add_ manually and all was fine.
|
|
@ -0,0 +1,12 @@
|
|||
[[!comment format=mdwn
|
||||
username="http://joeyh.name/"
|
||||
ip="4.153.2.25"
|
||||
subject="comment 1"
|
||||
date="2012-06-25T15:42:48Z"
|
||||
content="""
|
||||
Yes, this is a known problem with kqueue, it has to keep every directory in the tree open. On [[design/assistant/inotify]] I have a note that it may need to fork off extra watcher processes to deal with this. Of course that adds significant complication.
|
||||
|
||||
In the meantime, you may be able to increase your system's maximum allowed number of open files per process somehow.
|
||||
|
||||
(I doubt that the ssh-agent is related; git-annex does not use ssh-agent directly anyway..)
|
||||
"""]]
|
|
@ -0,0 +1,15 @@
|
|||
Running the 'assistant' branch, I occassionally get
|
||||
|
||||
To myhost1:/Users/jtang/annex
|
||||
! [rejected] master -> synced/master (non-fast-forward)
|
||||
error: failed to push some refs to 'myhost1:/Users/jtang/annex'
|
||||
hint: Updates were rejected because a pushed branch tip is behind its remote
|
||||
hint: counterpart. Check out this branch and merge the remote changes
|
||||
hint: (e.g. 'git pull') before pushing again.
|
||||
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
|
||||
(Recording state in git...)
|
||||
|
||||
manually running a 'git annex sync' usually fixes it, I guess once the sync command runs periodically this problem will go away, is this even OSX specific? I don't quite get the behaviour that is described in [[design/assistant/blog/day_15__its_aliiive]].
|
||||
|
||||
> With my changes today, I've seen it successfully recover from this
|
||||
> situation. [[done]] --[[Joey]]
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="http://joeyh.name/"
|
||||
ip="4.153.2.25"
|
||||
subject="comment 1"
|
||||
date="2012-06-25T15:45:18Z"
|
||||
content="""
|
||||
This is indeed the problem I've planned to work on today, as I see it too when things don't start off perfectly in sync.
|
||||
"""]]
|
159
doc/bugs/error_building_git-annex_3.20120624_using_cabal.mdwn
Normal file
159
doc/bugs/error_building_git-annex_3.20120624_using_cabal.mdwn
Normal file
|
@ -0,0 +1,159 @@
|
|||
I am trying to install git-annex 3.20120624 using cabal. My currently installed version of git-annex is 3.20120615. After a "cabal update", the build of git-annex fails:
|
||||
|
||||
bram@falafel% cabal install git-annex
|
||||
Resolving dependencies...
|
||||
[1 of 4] Compiling Utility.SafeCommand ( /tmp/git-annex-3.20120624-4173/git-annex-3.20120624/Utility/SafeCommand.hs, /tmp/git-annex-3.20120624-4173/git-annex-3.20120624/dist/setup/Utility/SafeCommand.o )
|
||||
[2 of 4] Compiling Build.TestConfig ( /tmp/git-annex-3.20120624-4173/git-annex-3.20120624/Build/TestConfig.hs, /tmp/git-annex-3.20120624-4173/git-annex-3.20120624/dist/setup/Build/TestConfig.o )
|
||||
[3 of 4] Compiling Build.Configure ( /tmp/git-annex-3.20120624-4173/git-annex-3.20120624/Build/Configure.hs, /tmp/git-annex-3.20120624-4173/git-annex-3.20120624/dist/setup/Build/Configure.o )
|
||||
[4 of 4] Compiling Main ( /tmp/git-annex-3.20120624-4173/git-annex-3.20120624/Setup.hs, /tmp/git-annex-3.20120624-4173/git-annex-3.20120624/dist/setup/Main.o )
|
||||
Linking /tmp/git-annex-3.20120624-4173/git-annex-3.20120624/dist/setup/setup ...
|
||||
checking version... 3.20120624
|
||||
checking git... yes
|
||||
checking git version... 1.7.9.5
|
||||
checking cp -a... yes
|
||||
checking cp -p... yes
|
||||
checking cp --reflink=auto... yes
|
||||
checking uuid generator... uuid
|
||||
checking xargs -0... yes
|
||||
checking rsync... yes
|
||||
checking curl... no
|
||||
checking wget... yes
|
||||
checking bup... no
|
||||
checking gpg... yes
|
||||
checking lsof... yes
|
||||
checking ssh connection caching... yes
|
||||
checking sha1... sha1sum
|
||||
checking sha512... sha512sum
|
||||
checking sha224... sha224sum
|
||||
checking sha384... sha384sum
|
||||
checking sha256... sha256sum
|
||||
Configuring git-annex-3.20120624...
|
||||
Building git-annex-3.20120624...
|
||||
Preprocessing executable 'git-annex' for git-annex-3.20120624...
|
||||
[ 1 of 183] Compiling Utility.Percentage ( Utility/Percentage.hs, dist/build/git-annex/git-annex-tmp/Utility/Percentage.o )
|
||||
[ 2 of 183] Compiling Utility.Dot ( Utility/Dot.hs, dist/build/git-annex/git-annex-tmp/Utility/Dot.o )
|
||||
[ 3 of 183] Compiling Utility.ThreadLock ( Utility/ThreadLock.hs, dist/build/git-annex/git-annex-tmp/Utility/ThreadLock.o )
|
||||
[ 4 of 183] Compiling Utility.Base64 ( Utility/Base64.hs, dist/build/git-annex/git-annex-tmp/Utility/Base64.o )
|
||||
[ 5 of 183] Compiling Utility.DataUnits ( Utility/DataUnits.hs, dist/build/git-annex/git-annex-tmp/Utility/DataUnits.o )
|
||||
[ 6 of 183] Compiling Utility.JSONStream ( Utility/JSONStream.hs, dist/build/git-annex/git-annex-tmp/Utility/JSONStream.o )
|
||||
[ 7 of 183] Compiling Messages.JSON ( Messages/JSON.hs, dist/build/git-annex/git-annex-tmp/Messages/JSON.o )
|
||||
[ 8 of 183] Compiling Build.SysConfig ( Build/SysConfig.hs, dist/build/git-annex/git-annex-tmp/Build/SysConfig.o )
|
||||
[ 9 of 183] Compiling Types.KeySource ( Types/KeySource.hs, dist/build/git-annex/git-annex-tmp/Types/KeySource.o )
|
||||
[ 10 of 183] Compiling Types.UUID ( Types/UUID.hs, dist/build/git-annex/git-annex-tmp/Types/UUID.o )
|
||||
[ 11 of 183] Compiling Utility.State ( Utility/State.hs, dist/build/git-annex/git-annex-tmp/Utility/State.o )
|
||||
[ 12 of 183] Compiling Types.Messages ( Types/Messages.hs, dist/build/git-annex/git-annex-tmp/Types/Messages.o )
|
||||
[ 13 of 183] Compiling Types.TrustLevel ( Types/TrustLevel.hs, dist/build/git-annex/git-annex-tmp/Types/TrustLevel.o )
|
||||
[ 14 of 183] Compiling Types.BranchState ( Types/BranchState.hs, dist/build/git-annex/git-annex-tmp/Types/BranchState.o )
|
||||
[ 15 of 183] Compiling Git.Index ( Git/Index.hs, dist/build/git-annex/git-annex-tmp/Git/Index.o )
|
||||
[ 16 of 183] Compiling Utility.PartialPrelude ( Utility/PartialPrelude.hs, dist/build/git-annex/git-annex-tmp/Utility/PartialPrelude.o )
|
||||
[ 17 of 183] Compiling Utility.Format ( Utility/Format.hs, dist/build/git-annex/git-annex-tmp/Utility/Format.o )
|
||||
[ 18 of 183] Compiling Utility.FileSystemEncoding ( Utility/FileSystemEncoding.hs, dist/build/git-annex/git-annex-tmp/Utility/FileSystemEncoding.o )
|
||||
[ 19 of 183] Compiling Utility.Touch ( dist/build/git-annex/git-annex-tmp/Utility/Touch.hs, dist/build/git-annex/git-annex-tmp/Utility/Touch.o )
|
||||
[ 20 of 183] Compiling Utility.Monad ( Utility/Monad.hs, dist/build/git-annex/git-annex-tmp/Utility/Monad.o )
|
||||
[ 21 of 183] Compiling Utility.Path ( Utility/Path.hs, dist/build/git-annex/git-annex-tmp/Utility/Path.o )
|
||||
[ 22 of 183] Compiling Utility.SafeCommand ( Utility/SafeCommand.hs, dist/build/git-annex/git-annex-tmp/Utility/SafeCommand.o )
|
||||
[ 23 of 183] Compiling Utility.RsyncFile ( Utility/RsyncFile.hs, dist/build/git-annex/git-annex-tmp/Utility/RsyncFile.o )
|
||||
[ 24 of 183] Compiling Utility.Exception ( Utility/Exception.hs, dist/build/git-annex/git-annex-tmp/Utility/Exception.o )
|
||||
[ 25 of 183] Compiling Utility.TempFile ( Utility/TempFile.hs, dist/build/git-annex/git-annex-tmp/Utility/TempFile.o )
|
||||
[ 26 of 183] Compiling Utility.Directory ( Utility/Directory.hs, dist/build/git-annex/git-annex-tmp/Utility/Directory.o )
|
||||
[ 27 of 183] Compiling Utility.Misc ( Utility/Misc.hs, dist/build/git-annex/git-annex-tmp/Utility/Misc.o )
|
||||
[ 28 of 183] Compiling Git.Types ( Git/Types.hs, dist/build/git-annex/git-annex-tmp/Git/Types.o )
|
||||
[ 29 of 183] Compiling Common ( Common.hs, dist/build/git-annex/git-annex-tmp/Common.o )
|
||||
[ 30 of 183] Compiling Utility.FileMode ( Utility/FileMode.hs, dist/build/git-annex/git-annex-tmp/Utility/FileMode.o )
|
||||
[ 31 of 183] Compiling Git ( Git.hs, dist/build/git-annex/git-annex-tmp/Git.o )
|
||||
[ 32 of 183] Compiling Git.Command ( Git/Command.hs, dist/build/git-annex/git-annex-tmp/Git/Command.o )
|
||||
[ 33 of 183] Compiling Git.Ref ( Git/Ref.hs, dist/build/git-annex/git-annex-tmp/Git/Ref.o )
|
||||
[ 34 of 183] Compiling Git.FilePath ( Git/FilePath.hs, dist/build/git-annex/git-annex-tmp/Git/FilePath.o )
|
||||
[ 35 of 183] Compiling Utility.Matcher ( Utility/Matcher.hs, dist/build/git-annex/git-annex-tmp/Utility/Matcher.o )
|
||||
[ 36 of 183] Compiling Utility.Gpg ( Utility/Gpg.hs, dist/build/git-annex/git-annex-tmp/Utility/Gpg.o )
|
||||
[ 37 of 183] Compiling Types.Crypto ( Types/Crypto.hs, dist/build/git-annex/git-annex-tmp/Types/Crypto.o )
|
||||
[ 38 of 183] Compiling Types.Key ( Types/Key.hs, dist/build/git-annex/git-annex-tmp/Types/Key.o )
|
||||
[ 39 of 183] Compiling Types.Backend ( Types/Backend.hs, dist/build/git-annex/git-annex-tmp/Types/Backend.o )
|
||||
[ 40 of 183] Compiling Types.Remote ( Types/Remote.hs, dist/build/git-annex/git-annex-tmp/Types/Remote.o )
|
||||
[ 41 of 183] Compiling Git.Sha ( Git/Sha.hs, dist/build/git-annex/git-annex-tmp/Git/Sha.o )
|
||||
[ 42 of 183] Compiling Git.Branch ( Git/Branch.hs, dist/build/git-annex/git-annex-tmp/Git/Branch.o )
|
||||
[ 43 of 183] Compiling Git.UpdateIndex ( Git/UpdateIndex.hs, dist/build/git-annex/git-annex-tmp/Git/UpdateIndex.o )
|
||||
[ 44 of 183] Compiling Git.Queue ( Git/Queue.hs, dist/build/git-annex/git-annex-tmp/Git/Queue.o )
|
||||
[ 45 of 183] Compiling Git.Url ( Git/Url.hs, dist/build/git-annex/git-annex-tmp/Git/Url.o )
|
||||
[ 46 of 183] Compiling Git.Construct ( Git/Construct.hs, dist/build/git-annex/git-annex-tmp/Git/Construct.o )
|
||||
[ 47 of 183] Compiling Git.Config ( Git/Config.hs, dist/build/git-annex/git-annex-tmp/Git/Config.o )
|
||||
[ 48 of 183] Compiling Git.SharedRepository ( Git/SharedRepository.hs, dist/build/git-annex/git-annex-tmp/Git/SharedRepository.o )
|
||||
[ 49 of 183] Compiling Git.Version ( Git/Version.hs, dist/build/git-annex/git-annex-tmp/Git/Version.o )
|
||||
[ 50 of 183] Compiling Utility.CoProcess ( Utility/CoProcess.hs, dist/build/git-annex/git-annex-tmp/Utility/CoProcess.o )
|
||||
[ 51 of 183] Compiling Git.HashObject ( Git/HashObject.hs, dist/build/git-annex/git-annex-tmp/Git/HashObject.o )
|
||||
[ 52 of 183] Compiling Git.CatFile ( Git/CatFile.hs, dist/build/git-annex/git-annex-tmp/Git/CatFile.o )
|
||||
[ 53 of 183] Compiling Git.UnionMerge ( Git/UnionMerge.hs, dist/build/git-annex/git-annex-tmp/Git/UnionMerge.o )
|
||||
[ 54 of 183] Compiling Git.CheckAttr ( Git/CheckAttr.hs, dist/build/git-annex/git-annex-tmp/Git/CheckAttr.o )
|
||||
[ 55 of 183] Compiling Annex ( Annex.hs, dist/build/git-annex/git-annex-tmp/Annex.o )
|
||||
[ 56 of 183] Compiling Types.Option ( Types/Option.hs, dist/build/git-annex/git-annex-tmp/Types/Option.o )
|
||||
[ 57 of 183] Compiling Types ( Types.hs, dist/build/git-annex/git-annex-tmp/Types.o )
|
||||
[ 58 of 183] Compiling Messages ( Messages.hs, dist/build/git-annex/git-annex-tmp/Messages.o )
|
||||
[ 59 of 183] Compiling Types.Command ( Types/Command.hs, dist/build/git-annex/git-annex-tmp/Types/Command.o )
|
||||
[ 60 of 183] Compiling Locations ( Locations.hs, dist/build/git-annex/git-annex-tmp/Locations.o )
|
||||
[ 61 of 183] Compiling Common.Annex ( Common/Annex.hs, dist/build/git-annex/git-annex-tmp/Common/Annex.o )
|
||||
[ 62 of 183] Compiling Annex.Exception ( Annex/Exception.hs, dist/build/git-annex/git-annex-tmp/Annex/Exception.o )
|
||||
[ 63 of 183] Compiling Annex.BranchState ( Annex/BranchState.hs, dist/build/git-annex/git-annex-tmp/Annex/BranchState.o )
|
||||
[ 64 of 183] Compiling Annex.CatFile ( Annex/CatFile.hs, dist/build/git-annex/git-annex-tmp/Annex/CatFile.o )
|
||||
[ 65 of 183] Compiling Annex.Perms ( Annex/Perms.hs, dist/build/git-annex/git-annex-tmp/Annex/Perms.o )
|
||||
[ 66 of 183] Compiling Annex.Journal ( Annex/Journal.hs, dist/build/git-annex/git-annex-tmp/Annex/Journal.o )
|
||||
[ 67 of 183] Compiling Annex.Branch ( Annex/Branch.hs, dist/build/git-annex/git-annex-tmp/Annex/Branch.o )
|
||||
[ 68 of 183] Compiling Crypto ( Crypto.hs, dist/build/git-annex/git-annex-tmp/Crypto.o )
|
||||
[ 69 of 183] Compiling Usage ( Usage.hs, dist/build/git-annex/git-annex-tmp/Usage.o )
|
||||
[ 70 of 183] Compiling Annex.CheckAttr ( Annex/CheckAttr.hs, dist/build/git-annex/git-annex-tmp/Annex/CheckAttr.o )
|
||||
[ 71 of 183] Compiling Remote.Helper.Special ( Remote/Helper/Special.hs, dist/build/git-annex/git-annex-tmp/Remote/Helper/Special.o )
|
||||
[ 72 of 183] Compiling Logs.Presence ( Logs/Presence.hs, dist/build/git-annex/git-annex-tmp/Logs/Presence.o )
|
||||
[ 73 of 183] Compiling Logs.Location ( Logs/Location.hs, dist/build/git-annex/git-annex-tmp/Logs/Location.o )
|
||||
[ 74 of 183] Compiling Logs.Web ( Logs/Web.hs, dist/build/git-annex/git-annex-tmp/Logs/Web.o )
|
||||
[ 75 of 183] Compiling Annex.LockPool ( Annex/LockPool.hs, dist/build/git-annex/git-annex-tmp/Annex/LockPool.o )
|
||||
[ 76 of 183] Compiling Backend.SHA ( Backend/SHA.hs, dist/build/git-annex/git-annex-tmp/Backend/SHA.o )
|
||||
[ 77 of 183] Compiling Backend.WORM ( Backend/WORM.hs, dist/build/git-annex/git-annex-tmp/Backend/WORM.o )
|
||||
[ 78 of 183] Compiling Backend.URL ( Backend/URL.hs, dist/build/git-annex/git-annex-tmp/Backend/URL.o )
|
||||
[ 79 of 183] Compiling Assistant.ThreadedMonad ( Assistant/ThreadedMonad.hs, dist/build/git-annex/git-annex-tmp/Assistant/ThreadedMonad.o )
|
||||
[ 80 of 183] Compiling Logs.UUIDBased ( Logs/UUIDBased.hs, dist/build/git-annex/git-annex-tmp/Logs/UUIDBased.o )
|
||||
[ 81 of 183] Compiling Logs.Remote ( Logs/Remote.hs, dist/build/git-annex/git-annex-tmp/Logs/Remote.o )
|
||||
[ 82 of 183] Compiling Utility.DiskFree ( Utility/DiskFree.hs, dist/build/git-annex/git-annex-tmp/Utility/DiskFree.o )
|
||||
[ 83 of 183] Compiling Utility.Url ( Utility/Url.hs, dist/build/git-annex/git-annex-tmp/Utility/Url.o )
|
||||
[ 84 of 183] Compiling Utility.CopyFile ( Utility/CopyFile.hs, dist/build/git-annex/git-annex-tmp/Utility/CopyFile.o )
|
||||
[ 85 of 183] Compiling Git.LsFiles ( Git/LsFiles.hs, dist/build/git-annex/git-annex-tmp/Git/LsFiles.o )
|
||||
[ 86 of 183] Compiling Git.AutoCorrect ( Git/AutoCorrect.hs, dist/build/git-annex/git-annex-tmp/Git/AutoCorrect.o )
|
||||
[ 87 of 183] Compiling Git.CurrentRepo ( Git/CurrentRepo.hs, dist/build/git-annex/git-annex-tmp/Git/CurrentRepo.o )
|
||||
[ 88 of 183] Compiling Utility.Daemon ( Utility/Daemon.hs, dist/build/git-annex/git-annex-tmp/Utility/Daemon.o )
|
||||
[ 89 of 183] Compiling Utility.LogFile ( Utility/LogFile.hs, dist/build/git-annex/git-annex-tmp/Utility/LogFile.o )
|
||||
[ 90 of 183] Compiling Utility.ThreadScheduler ( Utility/ThreadScheduler.hs, dist/build/git-annex/git-annex-tmp/Utility/ThreadScheduler.o )
|
||||
[ 91 of 183] Compiling Assistant.DaemonStatus ( Assistant/DaemonStatus.hs, dist/build/git-annex/git-annex-tmp/Assistant/DaemonStatus.o )
|
||||
[ 92 of 183] Compiling Utility.Types.DirWatcher ( Utility/Types/DirWatcher.hs, dist/build/git-annex/git-annex-tmp/Utility/Types/DirWatcher.o )
|
||||
[ 93 of 183] Compiling Utility.INotify ( Utility/INotify.hs, dist/build/git-annex/git-annex-tmp/Utility/INotify.o )
|
||||
[ 94 of 183] Compiling Utility.DirWatcher ( Utility/DirWatcher.hs, dist/build/git-annex/git-annex-tmp/Utility/DirWatcher.o )
|
||||
[ 95 of 183] Compiling Utility.Lsof ( Utility/Lsof.hs, dist/build/git-annex/git-annex-tmp/Utility/Lsof.o )
|
||||
[ 96 of 183] Compiling Git.Merge ( Git/Merge.hs, dist/build/git-annex/git-annex-tmp/Git/Merge.o )
|
||||
[ 97 of 183] Compiling Git.Filename ( Git/Filename.hs, dist/build/git-annex/git-annex-tmp/Git/Filename.o )
|
||||
[ 98 of 183] Compiling Git.LsTree ( Git/LsTree.hs, dist/build/git-annex/git-annex-tmp/Git/LsTree.o )
|
||||
[ 99 of 183] Compiling Config ( Config.hs, dist/build/git-annex/git-annex-tmp/Config.o )
|
||||
[100 of 183] Compiling Annex.UUID ( Annex/UUID.hs, dist/build/git-annex/git-annex-tmp/Annex/UUID.o )
|
||||
[101 of 183] Compiling Logs.UUID ( Logs/UUID.hs, dist/build/git-annex/git-annex-tmp/Logs/UUID.o )
|
||||
[102 of 183] Compiling Backend ( Backend.hs, dist/build/git-annex/git-annex-tmp/Backend.o )
|
||||
[103 of 183] Compiling Remote.Helper.Hooks ( Remote/Helper/Hooks.hs, dist/build/git-annex/git-annex-tmp/Remote/Helper/Hooks.o )
|
||||
[104 of 183] Compiling Remote.Helper.Encryptable ( Remote/Helper/Encryptable.hs, dist/build/git-annex/git-annex-tmp/Remote/Helper/Encryptable.o )
|
||||
[105 of 183] Compiling Annex.Queue ( Annex/Queue.hs, dist/build/git-annex/git-annex-tmp/Annex/Queue.o )
|
||||
[106 of 183] Compiling Annex.Content ( Annex/Content.hs, dist/build/git-annex/git-annex-tmp/Annex/Content.o )
|
||||
[107 of 183] Compiling Remote.S3 ( Remote/S3.hs, dist/build/git-annex/git-annex-tmp/Remote/S3.o )
|
||||
[108 of 183] Compiling Remote.Directory ( Remote/Directory.hs, dist/build/git-annex/git-annex-tmp/Remote/Directory.o )
|
||||
[109 of 183] Compiling Remote.Rsync ( Remote/Rsync.hs, dist/build/git-annex/git-annex-tmp/Remote/Rsync.o )
|
||||
[110 of 183] Compiling Remote.Web ( Remote/Web.hs, dist/build/git-annex/git-annex-tmp/Remote/Web.o )
|
||||
[111 of 183] Compiling Remote.Hook ( Remote/Hook.hs, dist/build/git-annex/git-annex-tmp/Remote/Hook.o )
|
||||
[112 of 183] Compiling Upgrade.V2 ( Upgrade/V2.hs, dist/build/git-annex/git-annex-tmp/Upgrade/V2.o )
|
||||
[113 of 183] Compiling Assistant.Changes ( Assistant/Changes.hs, dist/build/git-annex/git-annex-tmp/Assistant/Changes.o )
|
||||
|
||||
Assistant/Changes.hs:73:30:
|
||||
Not in scope: `tryReadTChan'
|
||||
Perhaps you meant `readTChan' (imported from Control.Concurrent.STM)
|
||||
cabal: Error: some packages failed to install:
|
||||
git-annex-3.20120624 failed during the building phase. The exception was:
|
||||
ExitFailure 1
|
||||
|
||||
This is using haskell-platform 2012.1.0.0~debian1 on Ubuntu 12.04.
|
||||
|
||||
> Turns out it needs version 2.3 of the STM library. (libghc-stm-dev
|
||||
> package). I've made cabal detect an older version and skip building
|
||||
> the new `git annex watch` command, so you'll be able to build the next
|
||||
> release. [[done]] --[[Joey]]
|
44
doc/design/assistant/blog/day_16__more_robust_syncing.mdwn
Normal file
44
doc/design/assistant/blog/day_16__more_robust_syncing.mdwn
Normal file
|
@ -0,0 +1,44 @@
|
|||
I released a version of git-annex over the weekend that includes the `git
|
||||
annex watch` command. There's a minor issue installing it from cabal on
|
||||
OSX, which I've fixed in my tree. Nice timing: At least the watch command
|
||||
should be shipped in the next Debian release, which freezes at the end of
|
||||
the month.
|
||||
|
||||
Jimmy found out how kqueue [[blows
|
||||
up|bugs/Issue_on_OSX_with_some_system_limits]] when there are too many
|
||||
directories to keep all open. I'm not surprised this happens, but it's nice
|
||||
to see exactly how. Odd that it happened to him at just 512 directories;
|
||||
I'd have guessed more. I have plans to fork watcher programs that each
|
||||
watch 512 directories (or whatever the ulimit is), to deal with this. What
|
||||
a pitiful interface is kqueue.. I have not thought yet about how the watcher
|
||||
programs would communicate back to the main program.
|
||||
|
||||
----
|
||||
|
||||
Back on the assistant front, I've worked today on making git syncing more
|
||||
robust. Now when a push fails, it tries a pull, and a merge, and repushes.
|
||||
That ensures that the push is, almost always, a fast-forward. Unless
|
||||
something else gets in a push first, anyway!
|
||||
|
||||
If a push still fails, there's Yet Another Thread, added today, that will
|
||||
wake up after 30 minutes and retry the push. It currently keeps retrying
|
||||
every 30 minutes until the push finally gets though. This will deal, to
|
||||
some degree, with those situations where a remote is only sometimes
|
||||
available.
|
||||
|
||||
I need to refine the code a bit, to avoid it keeping an ever-growing queue
|
||||
of failed pushes, if a remote is just dead. And to clear old failed pushes
|
||||
from the queue when a later push succeeds.
|
||||
|
||||
I also need to write a git merge driver that handles conflicts in the tree.
|
||||
If two conflicting versions of a file `foo` are saved, this would merge
|
||||
them, renaming them to `foo.X` and `foo.Y`. Probably X and Y are the
|
||||
git-annex keys for the content of the files; this way all clones will
|
||||
resolve the conflict in a way that leads to the same tree. It's also
|
||||
possible to get a conflict by one repo deleting a file, and another
|
||||
modifying it. In this case, renaming the deleted file to `foo.Y` may
|
||||
be the right approach, I am not sure.
|
||||
|
||||
I glanced through some Haskell dbus bindings today. I belive there are dbus
|
||||
events available to detect when drives are mounted, and on Linux this would
|
||||
let git-annex notice and sync to usb drives, etc.
|
|
@ -42,7 +42,7 @@ This probably will need lots of refinements to get working well.
|
|||
## other considerations
|
||||
|
||||
It would be nice if, when a USB drive is connected,
|
||||
syncing starts automatically.
|
||||
syncing starts automatically. Use dbus on Linux?
|
||||
|
||||
This assumes the network is connected. It's often not, so the
|
||||
[[cloud]] needs to be used to bridge between LANs.
|
||||
|
|
|
@ -37,12 +37,13 @@ To build and use git-annex, you will need:
|
|||
* [TestPack](http://hackage.haskell.org/cgi-bin/hackage-scripts/package/testpack)
|
||||
* [QuickCheck 2](http://hackage.haskell.org/package/QuickCheck)
|
||||
* [HTTP](http://hackage.haskell.org/package/HTTP)
|
||||
* [hS3](http://hackage.haskell.org/package/hS3) (optional)
|
||||
* [json](http://hackage.haskell.org/package/json)
|
||||
* [IfElse](http://hackage.haskell.org/package/IfElse)
|
||||
* [bloomfilter](http://hackage.haskell.org/package/bloomfilter)
|
||||
* [edit-distance](http://hackage.haskell.org/package/edit-distance)
|
||||
* [hS3](http://hackage.haskell.org/package/hS3) (optional)
|
||||
* [stm](http://hackage.haskell.org/package/stm)
|
||||
(optional; version 2.3 or newer)
|
||||
* [hinotify](http://hackage.haskell.org/package/hinotify)
|
||||
(optional; Linux only)
|
||||
* Shell commands
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
[[!comment format=mdwn
|
||||
username="http://joeyh.name/"
|
||||
ip="4.153.2.25"
|
||||
subject="comment 10"
|
||||
date="2012-06-25T15:38:44Z"
|
||||
content="""
|
||||
@Agustin you should be able to work around that with: cabal install git-annex --flags=-Inotify
|
||||
|
||||
I've fixed it properly for the next release, it should only be using that library on Linux.
|
||||
"""]]
|
|
@ -0,0 +1,39 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawkwR9uOA38yi5kEUvcEWNtRiZwpxXskayE"
|
||||
nickname="Agustin"
|
||||
subject="Installation not working on OS X 10.6.8"
|
||||
date="2012-06-25T02:21:40Z"
|
||||
content="""
|
||||
I try installing with brew because I already had brew setup in my machine, but all run ok but when I try to run cabal install git-annex I got an error with the hinotify-0.3.2 library complaining about a header file.
|
||||
|
||||
Full trace:
|
||||
|
||||
~~~
|
||||
sudo cabal install git-annex
|
||||
Resolving dependencies...
|
||||
Configuring hinotify-0.3.2...
|
||||
Building hinotify-0.3.2...
|
||||
Preprocessing library hinotify-0.3.2...
|
||||
INotify.hsc:35:25: error: sys/inotify.h: No such file or directory
|
||||
INotify.hsc: In function ‘main’:
|
||||
INotify.hsc:259: error: invalid use of undefined type ‘struct inotify_event’
|
||||
INotify.hsc:260: error: invalid use of undefined type ‘struct inotify_event’
|
||||
INotify.hsc:261: error: invalid use of undefined type ‘struct inotify_event’
|
||||
INotify.hsc:262: error: invalid use of undefined type ‘struct inotify_event’
|
||||
INotify.hsc:265: error: invalid use of undefined type ‘struct inotify_event’
|
||||
INotify.hsc:266: error: invalid application of ‘sizeof’ to incomplete type ‘struct inotify_event’
|
||||
compiling dist/build/System/INotify_hsc_make.c failed (exit code 1)
|
||||
command was: /usr/bin/gcc -c dist/build/System/INotify_hsc_make.c -o dist/build/System/INotify_hsc_make.o -m64 -fno-stack-protector -m64 -D__GLASGOW_HASKELL__=704 -Ddarwin_BUILD_OS -Ddarwin_HOST_OS -Dx86_64_BUILD_ARCH -Dx86_64_HOST_ARCH -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/directory-1.1.0.2/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/unix-2.5.1.0/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/old-time-1.1.0.0/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/bytestring-0.9.2.1/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/base-4.5.0.0/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/include/
|
||||
cabal: Error: some packages failed to install:
|
||||
git-annex-3.20120624 depends on hinotify-0.3.2 which failed to install.
|
||||
hinotify-0.3.2 failed during the building phase. The exception was:
|
||||
ExitFailure 1
|
||||
~~~
|
||||
|
||||
Anyone has an idea how can I solve this.
|
||||
|
||||
Thanks for the time!
|
||||
|
||||
Agustin
|
||||
|
||||
"""]]
|
|
@ -0,0 +1,14 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawkwR9uOA38yi5kEUvcEWNtRiZwpxXskayE"
|
||||
nickname="Agustin"
|
||||
subject="For the moment"
|
||||
date="2012-06-25T02:51:10Z"
|
||||
content="""
|
||||
Hi Joey! I just comment that I could not install it but the issue is with the last version (the one you just release today, so no problem!! man on sunday?? you're awesome!!!) so I installed the previous one and no problem at all
|
||||
|
||||
Thanks for all the efford and if you need me to try os whatever, feel free to ask!
|
||||
|
||||
Thanks again
|
||||
|
||||
Agustin
|
||||
"""]]
|
|
@ -0,0 +1,10 @@
|
|||
[[!comment format=mdwn
|
||||
username="http://joeyh.name/"
|
||||
ip="4.153.2.25"
|
||||
subject="comment 2"
|
||||
date="2012-06-25T15:29:29Z"
|
||||
content="""
|
||||
The directory and rsync special remotes intentionally use the same layout. So the same directory could be set up as both types of special remotes.
|
||||
|
||||
The main reason to use this rather than a bare git repo is that it supports encryption.
|
||||
"""]]
|
|
@ -0,0 +1,12 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawkjvjLHW9Omza7x1VEzIFQ8Z5honhRB90I"
|
||||
nickname="Asheesh"
|
||||
subject="The fact that the keys changed causes merge conflicts"
|
||||
date="2012-06-25T00:28:59Z"
|
||||
content="""
|
||||
FYI, I have run into a problem where if you 'git annex sync' between various 'git annex v3' repositories, if the different repositories are using different encodings of the SHA1 information (one including size, one not), then the 'git merge' will declare that they conflict.
|
||||
|
||||
There's no indication that 'git annex migrate' is the right tool to run, except from perusing the 'git annex' man page. In my opinion this is a major user interface problem.
|
||||
|
||||
-- Asheesh.
|
||||
"""]]
|
|
@ -1,5 +1,5 @@
|
|||
Name: git-annex
|
||||
Version: 3.20120624
|
||||
Version: 3.20120625
|
||||
Cabal-Version: >= 1.8
|
||||
License: GPL
|
||||
Maintainer: Joey Hess <joey@kitenet.net>
|
||||
|
@ -31,13 +31,16 @@ Flag S3
|
|||
Flag Inotify
|
||||
Description: Enable inotify support
|
||||
|
||||
Flag Assistant
|
||||
Description: Enable git-annex assistant and watch command
|
||||
|
||||
Executable git-annex
|
||||
Main-Is: git-annex.hs
|
||||
Build-Depends: MissingH, hslogger, directory, filepath,
|
||||
unix, containers, utf8-string, network, mtl, bytestring, old-locale, time,
|
||||
pcre-light, extensible-exceptions, dataenc, SHA, process, json, HTTP,
|
||||
base == 4.5.*, monad-control, transformers-base, lifted-base,
|
||||
IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance, stm
|
||||
IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance
|
||||
-- Need to list this because it's generated from a .hsc file.
|
||||
Other-Modules: Utility.Touch
|
||||
C-Sources: Utility/libdiskfree.c
|
||||
|
@ -47,6 +50,10 @@ Executable git-annex
|
|||
Build-Depends: hS3
|
||||
CPP-Options: -DWITH_S3
|
||||
|
||||
if flag(Assistant)
|
||||
Build-Depends: stm >= 2.3
|
||||
CPP-Options: -DWITH_ASSISTANT
|
||||
|
||||
if os(linux) && flag(Inotify)
|
||||
Build-Depends: hinotify
|
||||
CPP-Options: -DWITH_INOTIFY
|
||||
|
@ -58,7 +65,7 @@ Test-Suite test
|
|||
unix, containers, utf8-string, network, mtl, bytestring, old-locale, time,
|
||||
pcre-light, extensible-exceptions, dataenc, SHA, process, json, HTTP,
|
||||
base == 4.5.*, monad-control, transformers-base, lifted-base,
|
||||
IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance, stm
|
||||
IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance
|
||||
Other-Modules: Utility.Touch
|
||||
C-Sources: Utility/libdiskfree.c
|
||||
Extensions: CPP
|
||||
|
|
Loading…
Reference in a new issue