~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_dirstate_helpers_pyx.pyx

  • Committer: Vincent Ladeuil
  • Date: 2011-11-24 15:48:29 UTC
  • mfrom: (6289 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6337.
  • Revision ID: v.ladeuil+lp@free.fr-20111124154829-avowjpsxdl8yp2vz
merge trunk resolving conflicts

Show diffs side-by-side

added added

removed removed

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