~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_dirstate_helpers_pyx.pyx

  • Committer: Patch Queue Manager
  • Date: 2011-10-09 13:52:06 UTC
  • mfrom: (6202.1.3 revno-revision)
  • Revision ID: pqm@pqm.ubuntu.com-20111009135206-t3utsln6mtzv9eut
(jelmer) Add a --revision argument to 'bzr revno'. (Jelmer Vernooij)

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
 
1795
1799
                advance_entry = -1
1796
1800
                advance_path = -1
1797
1801
                result = None
 
1802
                changed = None
1798
1803
                path_handled = 0
1799
1804
                if current_entry is None:
1800
1805
                    # unversioned -  the check for path_handled when the path