Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2013-11-17 14:59:35 -04:00
commit d6b228bc60
11 changed files with 171 additions and 0 deletions

View file

@ -0,0 +1,66 @@
### Please describe the problem.
The .dmg the OSX build is distributed in is unnecessarily large (fixed size) and is externally compressed.
I did a quick survey of .dmg images used for distributing other pieces of software which I had downloaded to my Mac, and most of them seem to be the UDBZ or the (older) UDZO formats which are internally compressed with bzip2 or zlib. According to "man hdiutil", the UDBZ format is supported since 10.4 (Tiger).
Below are a pair of patches: first to enable "make clean" to work on OSX, second to build the .dmg in the UDBZ format and without an explicit size (it seems to infer a correct size). When I tested building it, it results in a .dmg which is slightly smaller than the old .dmg.bz2
(This will also require a change to remove the .bz2 from the download links elsewhere in the wiki.)
<pre>
From 251e23bbe66cc63e98089554f91b2528a097e818 Mon Sep 17 00:00:00 2001
From: Mike Magin <git@mike.magin.org>
Date: Sun, 17 Nov 2013 08:11:05 -0800
Subject: [PATCH 1/2] Add explicit path to find invocation in "make clean" target.
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 3f3ed35..5a0cebb 100644
--- a/Makefile
+++ b/Makefile
@@ -83,8 +83,8 @@ clean:
Setup Build/InstallDesktopFile Build/EvilSplicer \
Build/Standalone Build/OSXMkLibs \
git-union-merge git-recover-repository
- find -name \*.o -exec rm {} \;
- find -name \*.hi -exec rm {} \;
+ find . -name \*.o -exec rm {} \;
+ find . -name \*.hi -exec rm {} \;
Build/InstallDesktopFile: Build/InstallDesktopFile.hs
$(GHC) --make $@
--
1.8.4.3
From e66f767893b5ef70cbf69d420cb589071f88c784 Mon Sep 17 00:00:00 2001
From: Mike Magin <git@mike.magin.org>
Date: Sun, 17 Nov 2013 08:40:07 -0800
Subject: [PATCH 2/2] Change .dmg build to include compression and not be fixed size.
---
Makefile | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 5a0cebb..b6ac549 100644
--- a/Makefile
+++ b/Makefile
@@ -162,10 +162,9 @@ osxapp: Build/Standalone Build/OSXMkLibs
./Build/OSXMkLibs $(OSXAPP_BASE)
rm -f tmp/git-annex.dmg
- hdiutil create -size 640m -format UDRW -srcfolder tmp/build-dmg \
+ hdiutil create -format UDBZ -srcfolder tmp/build-dmg \
-volname git-annex -o tmp/git-annex.dmg
rm -f tmp/git-annex.dmg.bz2
- bzip2 --fast tmp/git-annex.dmg
ANDROID_FLAGS?=-f-XMPP
# Cross compile for Android.
--
1.8.4.3
</pre>

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawmL8pteP2jbYJUn1M3CbeLDvz2SWAA1wtg"
nickname="Kristian"
subject="comment 24"
date="2013-11-17T17:01:14Z"
content="""
Thanks Joey! It works great
"""]]

View file

@ -0,0 +1,16 @@
[[!comment format=mdwn
username="David"
ip="178.21.48.117"
subject="comment 10"
date="2013-11-16T23:15:49Z"
content="""
Great. Understood. :) Thanks.
Although there is one more thing that I don't really understand. Why do we need 2 repositories. In my mind (without knowing git) I thout it would work with one repository, where both server1 and server2 can upload/download files and they got synced through this.
server1 <-> repository (somewhere, eother server1 or server2) <-> server2
Now they use different repositories and I don't get why. Also I don't get how conflict-handling can be done if there are 2 repositories for the 2 transfer-ways.
Sorry to bother you with this.
"""]]

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="209.250.56.64"
subject="comment 11"
date="2013-11-16T23:25:26Z"
content="""
When using git, each place you access your files is a separate repository. Thus, you have:
server1 (repository) <--> server2 (repository)
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="209.250.56.64"
subject="comment 5"
date="2013-11-16T22:55:34Z"
content="""
Well, that's what should happen. What behavior are you seeing? What version of git-annex are you using?
"""]]

View file

@ -0,0 +1,16 @@
[[!comment format=mdwn
username="David"
ip="178.21.48.117"
subject="comment 6"
date="2013-11-16T22:58:15Z"
content="""
Hello,
Yes, meanwhile files started appearing. :) Maybe I just did not wait enough time.
So, I have just one more question. Shall I set the remote ssh repositories to client or transfer? I read the docs and understand the difference, but in my case I simply cannot decide.
Thanks a lot for your hard work and great support.
David
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="209.250.56.64"
subject="comment 7"
date="2013-11-16T23:04:29Z"
content="""
In your situation, you do not have or need a repository whose only job is to transfer files between two other client repositories. So the right choice for your repositories is client -- or something else possibly -- but almost certianly not transfer.
"""]]

View file

@ -0,0 +1,14 @@
[[!comment format=mdwn
username="David"
ip="178.21.48.117"
subject="comment 8"
date="2013-11-16T23:09:32Z"
content="""
Okay. One last question. Could you please help me understand how this sync works now?
So for example if I save a file on server1, it gets pushed to server2's repository. But how is it translated back to a normal file from the repository?
And in this case will this file be on server2's repository as well (so are there 2 copies on server2, one in the repository and one human-readabl)?
Thanks!
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="209.250.56.64"
subject="comment 9"
date="2013-11-16T23:11:58Z"
content="""
Since you created these repositories with the webapp, they default to using [[direct_mode]]. git-annex handles putting the files in place when they are transferred to the repository. Only 1 copy is made, there is no separate copy in the repository.
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="stoile"
ip="2a01:198:242:0:219:66ff:fef2:c021"
subject="Bug report answering my question"
date="2013-11-17T10:28:40Z"
content="""
My question was answered in <http://git-annex.branchable.com/bugs/not_possible_to_have_annex_on_a_separate_filesystem/>.
"""]]

View file

@ -0,0 +1,9 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawniayrgSdVLUc3c6bf93VbO-_HT4hzxmyo"
nickname="Tobias"
subject="comment 4"
date="2013-11-17T17:28:06Z"
content="""
The mentioned repository is stored on spinning disk.
Maybe it would help to store the .git directory on an SSD, but I'm not sure how to do it.
"""]]