Skip to content
Snippets Groups Projects
  • Matt Harbison's avatar
    9b413478f261
    lfs: deduplicate oids in the transfer · 9b413478f261
    Matt Harbison authored
    Apparently, we can't rely on the server to deduplicate for us.
    
    Sadly, the pointer object isn't hashable, so it can't be reduced by converting
    it to a set.  In order to be hashable, it needs to be immutable.  I had a bunch
    of code to change it to composition and forward the readonly dict methods to a
    member dict.  But the pointer is updated via __setitem__() when creating the
    pointer file.  So it didn't see worth adding all of that code to the class.
    9b413478f261
    History
    lfs: deduplicate oids in the transfer
    Matt Harbison authored
    Apparently, we can't rely on the server to deduplicate for us.
    
    Sadly, the pointer object isn't hashable, so it can't be reduced by converting
    it to a set.  In order to be hashable, it needs to be immutable.  I had a bunch
    of code to change it to composition and forward the readonly dict methods to a
    member dict.  But the pointer is updated via __setitem__() when creating the
    pointer file.  So it didn't see worth adding all of that code to the class.