~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_walkdirs_win32.pyx

  • Committer: Patch Queue Manager
  • Date: 2016-02-01 19:13:13 UTC
  • mfrom: (6614.2.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20160201191313-wdfvmfff1djde6oq
(vila) Release 2.7.0 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008-2011 Canonical Ltd
 
1
# Copyright (C) 2008-2012 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
 
    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
 
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
100
111
 
101
112
    def __repr__(self):
102
113
        """Repr is the same as a Stat object.
195
206
        statvalue.st_mtime = _ftime_to_timestamp(&data.ftLastWriteTime)
196
207
        statvalue.st_atime = _ftime_to_timestamp(&data.ftLastAccessTime)
197
208
        statvalue._st_size = _get_size(data)
198
 
        statvalue.st_ino = 0
199
 
        statvalue.st_dev = 0
200
209
        return statvalue
201
210
 
202
211
    def read_dir(self, prefix, top):
288
297
    statvalue.st_mtime = st.st_mtime
289
298
    statvalue.st_atime = st.st_atime
290
299
    statvalue._st_size = st.st_size
291
 
    statvalue.st_ino = 0
292
 
    statvalue.st_dev = 0
293
300
    return statvalue