diff options
author | Joey Hess <joey@kitenet.net> | 2012-10-24 15:56:33 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-10-24 15:56:33 -0400 |
commit | e6631f91826ad79de70b629e8343a7b8c1e1fa13 (patch) | |
tree | 0a814723fcd5d6bfd5fbaba1ee6907f71c860850 /doc/design/assistant | |
parent | 1e7e2d00cab461c60962123e9ea4e43121670b47 (diff) |
blog for the day
Diffstat (limited to 'doc/design/assistant')
-rw-r--r-- | doc/design/assistant/blog/day_113__notifier_work.mdwn | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/design/assistant/blog/day_113__notifier_work.mdwn b/doc/design/assistant/blog/day_113__notifier_work.mdwn new file mode 100644 index 000000000..920b48dfe --- /dev/null +++ b/doc/design/assistant/blog/day_113__notifier_work.mdwn @@ -0,0 +1,22 @@ +Built out the XMPP push notifier; around 200 lines of code. +Haven't tested it yet, but it just might work. It's in the `xmpp` branch +for now. + +I decided to send the UUID of the repo that was pushed to, otherwise +peers would have to speculatively pull from every repo. A wrinkle in this +is that not all git repos have a git-annex UUID. So it might notify that +a push was sent to an unidentified repo, and then peers need to pull from +every such repo. In the common case, there will only be one or a few such +repos, at someplace like at github that doesn't support git-annex. I could +send the URL, but there's no guarantee different clients have the same +URLs for a git remote, and also sending the URL leaks rather more data than +does a random UUID. + +Had a bit of a scare where it looked like I couldn't use the haskell +`network-protocol-xmpp` package together with the `mtl` package that +git-annex already depends on. With help from #haskell I found the way +to get them co-existing, by using the PackageImports extension. Whew! + +Need to add configuration of the XMPP server to use in the webapp, and +perhaps also a way to create `.git/annex/creds/notify-xmpp` from the +command line. |