~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_walkdirs_win32.pyx

  • Committer: Alexander Belchenko
  • Date: 2012-03-29 08:34:13 UTC
  • mto: (6015.44.14 2.4)
  • mto: This revision was merged to the branch mainline in revision 6513.
  • Revision ID: bialix@ukr.net-20120329083413-d4bqqdtfn2yrxp4f
change st_dev, st_ino, st_uid, st_gid from int members to properties.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
            return self._st_size
96
96
 
97
97
    # os.stat always returns 0, so we hard code it here
98
 
    cdef readonly int st_dev
99
 
    cdef readonly int st_ino
 
98
    property st_dev:
 
99
        def __get__(self):
 
100
            return 0
 
101
    property st_ino:
 
102
        def __get__(self):
 
103
            return 0
100
104
    # st_uid and st_gid required for some external tools like bzr-git & dulwich
101
 
    cdef readonly int st_uid
102
 
    cdef readonly int st_gid
 
105
    property st_uid:
 
106
        def __get__(self):
 
107
            return 0
 
108
    property st_gid:
 
109
        def __get__(self):
 
110
            return 0
103
111
 
104
112
    def __repr__(self):
105
113
        """Repr is the same as a Stat object.
198
206
        statvalue.st_mtime = _ftime_to_timestamp(&data.ftLastWriteTime)
199
207
        statvalue.st_atime = _ftime_to_timestamp(&data.ftLastAccessTime)
200
208
        statvalue._st_size = _get_size(data)
201
 
        statvalue.st_ino = 0
202
 
        statvalue.st_dev = 0
203
 
        statvalue.st_uid = 0
204
 
        statvalue.st_gid = 0
205
209
        return statvalue
206
210
 
207
211
    def read_dir(self, prefix, top):
293
297
    statvalue.st_mtime = st.st_mtime
294
298
    statvalue.st_atime = st.st_atime
295
299
    statvalue._st_size = st.st_size
296
 
    statvalue.st_ino = 0
297
 
    statvalue.st_dev = 0
298
 
    statvalue.st_uid = 0
299
 
    statvalue.st_gid = 0
300
300
    return statvalue