~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_walkdirs_win32.pyx

  • Committer: Jonathan Riddell
  • Date: 2011-05-16 11:27:37 UTC
  • mto: This revision was merged to the branch mainline in revision 5869.
  • Revision ID: jriddell@canonical.com-20110516112737-gep642p24rtzp3jt
userĀ guideĀ licence

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008-2012 Canonical Ltd
 
1
# Copyright (C) 2008-2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
95
95
            return self._st_size
96
96
 
97
97
    # os.stat always returns 0, so we hard code it here
98
 
    property st_dev:
99
 
        def __get__(self):
100
 
            return 0
101
 
    property st_ino:
102
 
        def __get__(self):
103
 
            return 0
104
 
    # st_uid and st_gid required for some external tools like bzr-git & dulwich
105
 
    property st_uid:
106
 
        def __get__(self):
107
 
            return 0
108
 
    property st_gid:
109
 
        def __get__(self):
110
 
            return 0
 
98
    cdef readonly int st_dev
 
99
    cdef readonly int st_ino
111
100
 
112
101
    def __repr__(self):
113
102
        """Repr is the same as a Stat object.
206
195
        statvalue.st_mtime = _ftime_to_timestamp(&data.ftLastWriteTime)
207
196
        statvalue.st_atime = _ftime_to_timestamp(&data.ftLastAccessTime)
208
197
        statvalue._st_size = _get_size(data)
 
198
        statvalue.st_ino = 0
 
199
        statvalue.st_dev = 0
209
200
        return statvalue
210
201
 
211
202
    def read_dir(self, prefix, top):
297
288
    statvalue.st_mtime = st.st_mtime
298
289
    statvalue.st_atime = st.st_atime
299
290
    statvalue._st_size = st.st_size
 
291
    statvalue.st_ino = 0
 
292
    statvalue.st_dev = 0
300
293
    return statvalue