Commit graph

5442 commits

Author SHA1 Message Date
Joey Hess
750c4ac6c2 bugfix: avoid staging but not committing changes to git-annex branch
Branch.get is not able to see changes that have been staged to the index
but not committed. This is a limitation of git cat-file --batch; when
reading from the index, as opposed to from a branch, it does not notice
changes made after the first time it reads the index.

So, had to revert the changes made in 1f73db3469
to make annex.alwayscommit=false stage changes.

Also, ensure that Branch.change and Branch.get always see changes
at all points during a commit, by not deleting journal files when
staging to the index. Delete them only after committing the branch.
Before, there was a race during commits where a different git-annex
could see out-of-date info from the branch while a commit was in progress.

That's also done when updating the branch to merge in remote branches.

In the case where the local git-annex branch has had changes pushed into it
that are not yet reflected in the index, and there are journalled changes
as well, a merge commit has to be done.
2012-09-15 20:15:16 -04:00
Joey Hess
a1f93f06fd eliminate some commits to the git-annex branch
Commits used to be made to the git-annex branch whenever there were
journalled changes from a previous command, and the current command looked
up the value of a file. This no longer happens.

This means that transferkey, which is a oneshot command that stages
changes, can be run multiple times by the assistant, without each of them
committing the changes made by the command before. Which will be a lot
faster and use less space by batching up the commits.

Commits still happen if a remote git-annex branch has been changed and is
merged in.
2012-09-15 18:36:42 -04:00
Joey Hess
ca45cea113 Revert "add catFileIndex"
This interface is not a good idea, because a running git cat-file --batch
does not notice when existing files in the index are changed.
2012-09-15 18:30:53 -04:00
Joey Hess
0b63ee6cd5 run git coprocesses with gitEnv 2012-09-15 17:43:37 -04:00
Joey Hess
e1baf48d88 add catFileIndex 2012-09-15 17:06:10 -04:00
Joey Hess
87fb9c690e remove withIndexUpdate helper 2012-09-15 15:48:21 -04:00
Joey Hess
b453ea8b48 found some bugs 2012-09-15 15:24:07 -04:00
85.84.130.12
2fda03c46f poll vote (Google Drive) 2012-09-14 17:41:37 +00:00
142.103.22.67
69d474d7e2 poll vote (My phone (or MP3 player)) 2012-09-14 17:32:46 +00:00
194.167.235.220
e83052b916 poll vote (My phone (or MP3 player)) 2012-09-14 16:32:14 +00:00
108.202.177.46
2667e58eef poll vote (Amazon S3) 2012-09-14 14:37:32 +00:00
2001:8b0:641b:0:240:f4ff:fe51:2b8f
d3aee0b85e poll vote (My phone (or MP3 player)) 2012-09-14 13:44:19 +00:00
61.16.175.58
6e4ad78135 poll vote (Amazon S3) 2012-09-14 12:59:04 +00:00
81.110.190.38
b421a08d86 poll vote (Amazon Glacier) 2012-09-14 12:28:17 +00:00
134.34.1.246
afc5fb8291 poll vote (OpenStack SWIFT) 2012-09-14 11:20:52 +00:00
134.109.4.210
f76ab022f2 poll vote (My phone (or MP3 player)) 2012-09-14 10:40:26 +00:00
134.93.131.80
7f5b073e69 poll vote (My phone (or MP3 player)) 2012-09-14 09:03:42 +00:00
80.138.120.93
bfe58eee87 poll vote (OpenStack SWIFT) 2012-09-14 08:56:49 +00:00
204.210.141.90
ebcac59a07 poll vote (Amazon S3) 2012-09-14 08:06:55 +00:00
130.206.138.233
225c7d44e3 poll vote (Google Drive) 2012-09-14 08:06:02 +00:00
195.81.3.249
2f88f683e0 poll vote (My phone (or MP3 player)) 2012-09-14 07:52:37 +00:00
93.137.114.136
d4605eee8d poll vote (My phone (or MP3 player)) 2012-09-14 07:49:24 +00:00
193.29.115.250
dfcf907069 poll vote (Google Drive) 2012-09-14 07:33:50 +00:00
193.29.115.250
9b85c3eb37 poll vote (Box.com) 2012-09-14 07:33:43 +00:00
78.144.72.66
dbfa65a6c5 poll vote (My phone (or MP3 player)) 2012-09-14 07:11:10 +00:00
76.21.12.58
6c1d606ef1 poll vote (Amazon Glacier) 2012-09-14 06:11:22 +00:00
90.84.144.43
8a4d5cae22 poll vote (My phone (or MP3 player)) 2012-09-14 05:34:22 +00:00
189.103.67.26
4b1baaa945 poll vote (Google Drive) 2012-09-14 04:53:04 +00:00
http://mike.magin.org/
71c6909086 poll vote (Amazon S3) 2012-09-14 04:21:17 +00:00
Joey Hess
8fcc0866ce Merge branch 'master' of ssh://git-annex.branchable.com 2012-09-14 00:20:58 -04:00
http://joeyh.name/
5c3b646853 Added a comment 2012-09-14 04:20:27 +00:00
http://mike.magin.org/
2075ce728c Added a comment 2012-09-14 04:19:54 +00:00
140.107.155.156
679bb30d32 poll vote (Google Drive) 2012-09-14 04:18:28 +00:00
Joey Hess
7f45baee5e migrate: Check content before generating the new key, to avoid generating a key for corrupt data. 2012-09-14 00:18:18 -04:00
82.145.208.111
2269b13510 poll vote (Google Drive) 2012-09-14 04:17:12 +00:00
69.94.209.177
f1f78f596b poll vote (My phone (or MP3 player)) 2012-09-14 03:19:06 +00:00
75.42.235.50
54ebb8a86f poll vote (Google Drive) 2012-09-14 02:55:39 +00:00
75.150.123.25
7898bf1b23 poll vote (My phone (or MP3 player)) 2012-09-14 02:55:34 +00:00
75.42.235.50
9568922418 poll vote (Google Drive) 2012-09-14 02:54:50 +00:00
96.53.57.14
e76260d656 poll vote (My phone (or MP3 player)) 2012-09-14 01:58:23 +00:00
204.101.237.139
833e5fb2fa poll vote (My phone (or MP3 player)) 2012-09-14 01:36:59 +00:00
70.80.215.148
b2552dd336 poll vote (Amazon Glacier) 2012-09-13 23:42:46 +00:00
70.80.215.148
4fed2bcacc poll vote (Tahoe-LAFS) 2012-09-13 23:42:37 +00:00
70.80.215.148
72f852f66c poll vote (Amazon Glacier) 2012-09-13 23:42:21 +00:00
91.66.168.202
63cc93eba7 poll vote (Tahoe-LAFS) 2012-09-13 23:29:57 +00:00
Joey Hess
ac67b4ed00 Merge branch 'master' of ssh://git-annex.branchable.com 2012-09-13 19:28:57 -04:00
Joey Hess
5573911d25 Disable ssh connection caching if the path to the control socket would be too long (and use relative path to minimise path to the control socket). 2012-09-13 19:26:39 -04:00
Joey Hess
60c31afc38 add decodeW8 2012-09-13 19:14:29 -04:00
2001:15c0:66bc:0:f2de:f1ff:fe77:7ecb
8b9c1b1b50 poll vote (My phone (or MP3 player)) 2012-09-13 23:07:03 +00:00
64.125.69.70
a1a8ec89a3 poll vote (Amazon Glacier) 2012-09-13 22:38:32 +00:00