diff mercurial/pathencode.c @ 23002:2920a96f5839

obsstore: record data as floating point in fm0 format For python struct module, "d" is double. But for python string formating, "d" is integer. We want to preserve the floating point nature of the data, so we store it in the metadata as floating point. We use "%r" to make sure we get as many significant digitis as necessary to restore the float to the exact same value on the other side. The fm1 is transmitting the information as float. The lack of this made fm1-stored markers not survive a round-trip to fm0 leading to duplicated markers (or two markers very alike).
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 16 Oct 2014 14:46:37 -0700
parents 5f683209f5b6
children 822f46b80fa9
line wrap: on
line diff