~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-28 14:04:31 UTC
  • mto: (6015.44.14 2.4)
  • mto: This revision was merged to the branch mainline in revision 6513.
  • Revision ID: bialix@ukr.net-20120328140431-n9otsjezdxmfdwub
_Win32Stat object provides members st_uid and st_gid, those are present in Python's os.stat object. These members required for external tools like bzr-git and dulwich.

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
97
97
    # os.stat always returns 0, so we hard code it here
98
98
    cdef readonly int st_dev
99
99
    cdef readonly int st_ino
 
100
    # 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
100
103
 
101
104
    def __repr__(self):
102
105
        """Repr is the same as a Stat object.
197
200
        statvalue._st_size = _get_size(data)
198
201
        statvalue.st_ino = 0
199
202
        statvalue.st_dev = 0
 
203
        statvalue.st_uid = 0
 
204
        statvalue.st_gid = 0
200
205
        return statvalue
201
206
 
202
207
    def read_dir(self, prefix, top):
290
295
    statvalue._st_size = st.st_size
291
296
    statvalue.st_ino = 0
292
297
    statvalue.st_dev = 0
 
298
    statvalue.st_uid = 0
 
299
    statvalue.st_gid = 0
293
300
    return statvalue