git-annex/Logs
Joey Hess 9cc6d5549b
convert UUID from String to ByteString
This should make == comparison of UUIDs somewhat faster, and perhaps a
few other operations around maps of UUIDs etc.

FromUUID/ToUUID are used to convert String, which is still used for all
IO of UUIDs. Eventually the hope is those instances can be removed,
and all git-annex branch log files etc use ByteString throughout, for a
real speed improvement.

Note the use of fromRawFilePath / toRawFilePath -- while a UUID usually
contains only alphanumerics and so could be treated as ascii, it's
conceivable that some git-annex repository has been initialized using
a UUID that is not only not a canonical UUID, but contains high unicode
or invalid unicode. Using the filesystem encoding avoids any problems
with such a thing. However, a NUL in a UUID seems extremely unlikely,
so I didn't use encodeBS / decodeBS to avoid their extra overhead in
handling NULs.

The Read/Show instance for UUID luckily serializes the same way for
ByteString as it did for String.
2019-01-01 14:45:33 -04:00
..
Chunk remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Difference remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
MetaData dropdead per-remote metadata 2018-09-05 13:52:46 -04:00
PreferredContent Added GIT_ANNEX_VECTOR_CLOCK environment variable 2017-08-14 14:19:58 -04:00
Presence avoid accidental Show of VectorClock 2017-08-14 14:51:54 -04:00
SingleValue dropdead per-remote metadata 2018-09-05 13:52:46 -04:00
Trust finish fixing inverted Ord for TrustLevel 2018-04-13 15:17:54 -04:00
Activity.hs Added GIT_ANNEX_VECTOR_CLOCK environment variable 2017-08-14 14:19:58 -04:00
Chunk.hs Added GIT_ANNEX_VECTOR_CLOCK environment variable 2017-08-14 14:19:58 -04:00
Config.hs Added GIT_ANNEX_VECTOR_CLOCK environment variable 2017-08-14 14:19:58 -04:00
Difference.hs Added GIT_ANNEX_VECTOR_CLOCK environment variable 2017-08-14 14:19:58 -04:00
Export.hs cleanup imports 2017-09-13 12:53:19 -04:00
File.hs defer updating unlocked files until after smudge filter 2018-10-25 15:08:20 -04:00
FsckResults.hs Fix several places where files in .git/annex/ were written with modes that did not take the core.sharedRepository config into account. 2018-01-02 17:25:25 -04:00
Group.hs Added GIT_ANNEX_VECTOR_CLOCK environment variable 2017-08-14 14:19:58 -04:00
Line.hs Split lines in the git-annex branch on \r as well as \n, to deal with \r\n terminated lines written by some versions of git-annex on Windows. 2016-05-27 11:45:13 -04:00
Location.hs convert UUID from String to ByteString 2019-01-01 14:45:33 -04:00
MapLog.hs avoid insertWith' depreaction warning 2018-04-22 13:28:31 -04:00
MetaData.hs moved module and relicensed 2018-10-29 23:13:36 -04:00
Multicast.hs Added GIT_ANNEX_VECTOR_CLOCK environment variable 2017-08-14 14:19:58 -04:00
NumCopies.hs vicfg: Include the numcopies configuation. 2017-01-30 15:27:25 -04:00
PreferredContent.hs v6: avoid accidental conversion when annex.largefiles is not configured 2018-08-27 14:51:10 -04:00
Presence.hs Added GIT_ANNEX_VECTOR_CLOCK environment variable 2017-08-14 14:19:58 -04:00
Remote.hs Added GIT_ANNEX_VECTOR_CLOCK environment variable 2017-08-14 14:19:58 -04:00
RemoteState.hs Added GIT_ANNEX_VECTOR_CLOCK environment variable 2017-08-14 14:19:58 -04:00
Schedule.hs Fix several places where files in .git/annex/ were written with modes that did not take the core.sharedRepository config into account. 2018-01-02 17:25:25 -04:00
SingleValue.hs dropdead per-remote metadata 2018-09-05 13:52:46 -04:00
Smudge.hs defer updating unlocked files until after smudge filter 2018-10-25 15:08:20 -04:00
Transfer.hs add DebugLocks build flag 2018-11-19 15:02:43 -04:00
Transitions.hs avoid accidental Show of VectorClock 2017-08-14 14:51:54 -04:00
Trust.hs don't untrust appendonly exports 2018-08-30 11:48:04 -04:00
Unused.hs moved module and relicensed 2018-10-29 23:13:36 -04:00
UUID.hs avoid insertWith' depreaction warning 2018-04-22 13:28:31 -04:00
UUIDBased.hs avoid accidental Show of VectorClock 2017-08-14 14:51:54 -04:00
View.hs Fix several places where files in .git/annex/ were written with modes that did not take the core.sharedRepository config into account. 2018-01-02 17:25:25 -04:00
Web.hs clean up url removal presence update 2018-10-04 17:35:49 -04:00