~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_dirstate_helpers_pyx.pyx

Merge cleanup of pack_stat implementations

Show diffs side-by-side

added added

removed removed

Lines of Context:
811
811
_encode = binascii.b2a_base64
812
812
 
813
813
 
814
 
from struct import pack
815
814
cdef _pack_stat(stat_value):
816
815
    """return a string representing the stat value's key fields.
817
816
 
831
830
    return _encode(packed)[:-1]
832
831
 
833
832
 
 
833
def pack_stat(stat_value):
 
834
    """Convert stat value into a packed representation quickly with pyrex"""
 
835
    return _pack_stat(stat_value)
 
836
 
 
837
 
834
838
def update_entry(self, entry, abspath, stat_value):
835
839
    """Update the entry based on what is actually on disk.
836
840