summaryrefslogtreecommitdiff
path: root/doc/bugs/Annex_thinks_file_exists_afer_being_dropped
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-01-16 21:45:41 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-01-16 21:45:41 -0400
commit72f6a01dfc952ea36a37af8247ed675a7f033f02 (patch)
tree129cdb0d31eaa0db7bc15da9f6b4a6cd4efcfbfa /doc/bugs/Annex_thinks_file_exists_afer_being_dropped
parent4b5f9f886356580cea75f68787601ac1be32122f (diff)
parent2ffc06394b4fa8f662aabb3028e650d220d491c1 (diff)
Merge branch 'master' of ssh://git-annex.branchable.com
Diffstat (limited to 'doc/bugs/Annex_thinks_file_exists_afer_being_dropped')
-rw-r--r--doc/bugs/Annex_thinks_file_exists_afer_being_dropped/comment_2_166c459c2b27859cf457e17da685fe75._comment14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/bugs/Annex_thinks_file_exists_afer_being_dropped/comment_2_166c459c2b27859cf457e17da685fe75._comment b/doc/bugs/Annex_thinks_file_exists_afer_being_dropped/comment_2_166c459c2b27859cf457e17da685fe75._comment
new file mode 100644
index 000000000..661386d8e
--- /dev/null
+++ b/doc/bugs/Annex_thinks_file_exists_afer_being_dropped/comment_2_166c459c2b27859cf457e17da685fe75._comment
@@ -0,0 +1,14 @@
+[[!comment format=mdwn
+ username="http://joeyh.name/"
+ ip="4.154.7.238"
+ subject="comment 2"
+ date="2013-01-17T01:35:44Z"
+ content="""
+All right, the bug here involves differing changes to location log info for the same file being synced from two repositories and merged. Which probably explains why this bug was not noticed before.
+
+The union merge code generates a stream of data to feed into a single call to update-index. For each ref being merged, it calculates a union merge between that ref and the index. However, this means that the merge data for test2 is fed into update-index, and this is followed by the merge data for test3, which overwrites the previous merge data, causing the unique line from it to be lost.
+
+A fix, although perhaps not the most efficient way, is to run update-index once for each ref to merge, so that each merge builds on the one before. I've put this in place and can confirm problems #2 and #3 are fixed. Leaving open for the minor wording problem #1.
+
+Thanks for an excellent test case for this most unusual bug! (Which I should haskell-ize and add to the regression test suite, when I have time..)
+"""]]