From 138c9efec1f83c268978e8d762d202413f5f10a8 Mon Sep 17 00:00:00 2001 From: seantparsons Date: Sun, 22 Oct 2017 20:04:43 +0000 Subject: [PATCH 1/3] --- doc/bugs/Add_day_to_metadata..mdwn | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 doc/bugs/Add_day_to_metadata..mdwn diff --git a/doc/bugs/Add_day_to_metadata..mdwn b/doc/bugs/Add_day_to_metadata..mdwn new file mode 100644 index 0000000000..f92a2a11f4 --- /dev/null +++ b/doc/bugs/Add_day_to_metadata..mdwn @@ -0,0 +1,13 @@ +### Please describe the problem. + +The metadata doesn't include the day for RSS feeds, which is probably only a problem for me as I've built something on top of the metadata to provide an interface for selecting podcasts. + +### Please provide any additional information below. + +The attached patch adds the day field to the metadata. + +There's also a tiny bit extra for stack.yaml which will only affect people who have nix enabled in Stack and will make the build successful for those people. + +### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders) + +git-annex is awesome, I lean on it heavily nearly every single day. From 76e0af3153c20cac75c36db633ddd7dad0b03c95 Mon Sep 17 00:00:00 2001 From: seantparsons Date: Sun, 22 Oct 2017 20:32:22 +0000 Subject: [PATCH 2/3] Added a comment: Since the attachment doesn't appear to be there, here's the content. --- ..._d46d9f085b7077cc95d71628e45c231d._comment | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 doc/bugs/Add_day_to_metadata./comment_1_d46d9f085b7077cc95d71628e45c231d._comment diff --git a/doc/bugs/Add_day_to_metadata./comment_1_d46d9f085b7077cc95d71628e45c231d._comment b/doc/bugs/Add_day_to_metadata./comment_1_d46d9f085b7077cc95d71628e45c231d._comment new file mode 100644 index 0000000000..ec344a2d6e --- /dev/null +++ b/doc/bugs/Add_day_to_metadata./comment_1_d46d9f085b7077cc95d71628e45c231d._comment @@ -0,0 +1,64 @@ +[[!comment format=mdwn + username="seantparsons" + avatar="http://cdn.libravatar.org/avatar/616fb81847630239dd1ab099138cb685" + subject="Since the attachment doesn't appear to be there, here's the content." + date="2017-10-22T20:32:21Z" + content=""" + diff --git a/Annex/MetaData.hs b/Annex/MetaData.hs + index e22ed05a6..355c5124a 100644 + --- a/Annex/MetaData.hs + +++ b/Annex/MetaData.hs + @@ -60,10 +60,11 @@ dateMetaData :: UTCTime -> MetaData -> MetaData + dateMetaData mtime old = MetaData $ M.fromList $ filter isnew + [ (yearMetaField, S.singleton $ toMetaValue $ show y) + , (monthMetaField, S.singleton $ toMetaValue $ show m) + + , (dayMetaField, S.singleton $ toMetaValue $ show d) + ] + where + isnew (f, _) = S.null (currentMetaDataValues f old) + - (y, m, _d) = toGregorian $ utctDay mtime + + (y, m, d) = toGregorian $ utctDay mtime + + {- Parses field=value, field+=value, field-=value, field?=value -} + parseModMeta :: String -> Either String ModMeta + diff --git a/Annex/MetaData/StandardFields.hs b/Annex/MetaData/StandardFields.hs + index c91b53930..b9ea47e2f 100644 + --- a/Annex/MetaData/StandardFields.hs + +++ b/Annex/MetaData/StandardFields.hs + @@ -9,6 +9,7 @@ module Annex.MetaData.StandardFields ( + tagMetaField, + yearMetaField, + monthMetaField, + + dayMetaField, + lastChangedField, + mkLastChangedField, + isLastChangedField + @@ -27,6 +28,9 @@ yearMetaField = mkMetaFieldUnchecked \"year\" + monthMetaField :: MetaField + monthMetaField = mkMetaFieldUnchecked \"month\" + + +dayMetaField :: MetaField + +dayMetaField = mkMetaFieldUnchecked \"day\" + + + lastChangedField :: MetaField + lastChangedField = mkMetaFieldUnchecked lastchanged + + diff --git a/stack.yaml b/stack.yaml + index d84c4682e..ac601200e 100644 + --- a/stack.yaml + +++ b/stack.yaml + @@ -24,3 +24,11 @@ extra-deps: + explicit-setup-deps: + git-annex: true + resolver: lts-9.9 + +nix: + + packages: + + - ncurses + + - icu + + - libcxx + + - gcc + + - zlib + + - rsync + \ No newline at end of file + +"""]] From 19e957628974ce6c0b837d16a988c7c80bc56147 Mon Sep 17 00:00:00 2001 From: ynikitenko Date: Tue, 24 Oct 2017 09:31:07 +0000 Subject: [PATCH 3/3] Added a comment: same problem --- ...mment_3_910399daee8c9ad9909068a23f0eb5c9._comment | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 doc/bugs/v6__58___git_status__47__add_after_unlock_is_linear_to_the_file_size/comment_3_910399daee8c9ad9909068a23f0eb5c9._comment diff --git a/doc/bugs/v6__58___git_status__47__add_after_unlock_is_linear_to_the_file_size/comment_3_910399daee8c9ad9909068a23f0eb5c9._comment b/doc/bugs/v6__58___git_status__47__add_after_unlock_is_linear_to_the_file_size/comment_3_910399daee8c9ad9909068a23f0eb5c9._comment new file mode 100644 index 0000000000..b98157be16 --- /dev/null +++ b/doc/bugs/v6__58___git_status__47__add_after_unlock_is_linear_to_the_file_size/comment_3_910399daee8c9ad9909068a23f0eb5c9._comment @@ -0,0 +1,12 @@ +[[!comment format=mdwn + username="ynikitenko" + avatar="http://cdn.libravatar.org/avatar/168d629704097ddc596f75ca32a687a3" + subject="same problem" + date="2017-10-24T09:31:06Z" + content=""" +When could that be fixed? + +I face the same problem. My repo is only about 2Gb, but it syncs quite slow (like minutes or tens of minutes, but with every smallest change that I want to be synced). I don't want to use other than version 6 and thin to save space, but it takes much time. + +For another repo of 100 thousand files (though 2.6Gb) git-annex commit did not even work (I killed that after about 20 hours of work - it loaded the machine, created a lot of files (twice the size of the repo), but did not stop in that time). +"""]]