call site 0 for path.local.size
path/svn/testing/test_wccommand.py - line 161
160
161
162
163
164
165
166
167
168
169
170
171
   def test_versioned(self):
->     assert self.root.check(versioned=1)
       # TODO: Why does my copy of svn think .svn is versioned?
       #assert self.root.join('.svn').check(versioned=0) 
       assert self.root.join('samplefile').check(versioned=1)
       assert not self.root.join('notexisting').check(versioned=1)
       notexisting = self.root.join('hello').localpath
       try:
           notexisting.write("")
           assert self.root.join('hello').check(versioned=0)
       finally:
           notexisting.remove()
path/common.py - line 114
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
   def check(self, **kw):
       """ check a path for existence, or query its properties
   
               without arguments, this returns True if the path exists (on the
               filesystem), False if not
   
               with (keyword only) arguments, the object compares the value
               of the argument with the value of a property with the same name
               (if it has one, else it raises a TypeError)
   
               when for example the keyword argument 'ext' is '.py', this will
               return True if self.ext == '.py', False otherwise
           """
       if kw:
           kw = kw.copy()
           if not checktype(self, kw):
               return False
       else:
           kw = {'exists' : 1}
->     return self.Checkers(self)._evaluate(kw)
path/common.py - line 75
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
   def _evaluate(self, kw):
       for name, value in kw.items():
           invert = False
           meth = None
           try:
               meth = getattr(self, name)
           except AttributeError:
               if name[:3] == 'not':
                   invert = True
                   try:
                       meth = getattr(self, name[3:])
                   except AttributeError:
                       pass
           if meth is None:
               raise TypeError, "no %r checker available for %r" % (name, self.path)
           try:
               if meth.im_func.func_code.co_argcount > 1:
                   if (not meth(value)) ^ invert:
                       return False
               else:
->                 if bool(value) ^ bool(meth()) ^ invert:
                       return False
           except (py.error.ENOENT, py.error.ENOTDIR):
               for name in self._depend_on_existence:
                   if name in kw:
                       if kw.get(name):
                           return False
                   name = 'not' + name
                   if name in kw:
                       if not kw.get(name):
                           return False
       return True
path/svn/wccommand.py - line 525
523
524
525
526
527
528
529
530
531
532
533
   def versioned(self):
       try:
->         s = self.svnwcpath.info()
       except (py.error.ENOENT, py.error.EEXIST): 
           return False 
       except py.process.cmdexec.Error, e:
           if e.err.find('is not a working copy')!=-1:
               return False
           raise
       else:
           return True 
path/svn/wccommand.py - line 475
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
   def info(self, usecache=1):
       """ return an Info structure with svn-provided information. """
       info = usecache and cache.info.get(self)
       if not info:
           try:
               output = self._svn('info')
           except py.process.cmdexec.Error, e:
               if e.err.find('Path is not a working copy directory') != -1:
                   raise py.error.ENOENT(self, e.err)
               raise
           # XXX SVN 1.3 has output on stderr instead of stdout (while it does
           # return 0!), so a bit nasty, but we assume no output is output
           # to stderr...
           if (output.strip() == '' or 
                   output.lower().find('not a versioned resource') != -1):
               raise py.error.ENOENT(self, output)
->         info = InfoSvnWCCommand(output)
   
           # Can't reliably compare on Windows without access to win32api
           if py.std.sys.platform != 'win32': 
               if info.path != self.localpath: 
                   raise py.error.ENOENT(self, "not a versioned resource:" + 
                           " %s != %s" % (info.path, self.localpath)) 
           cache.info[self] = info
       self.rev = info.rev
       return info
path/svn/wccommand.py - line 639
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
   def __init__(self, output):
       # Path: test
       # URL: http://codespeak.net/svn/std.path/trunk/dist/std.path/test
       # Repository UUID: fd0d7bf2-dfb6-0310-8d31-b7ecfe96aada
       # Revision: 2151
       # Node Kind: directory
       # Schedule: normal
       # Last Changed Author: hpk
       # Last Changed Rev: 2100
       # Last Changed Date: 2003-10-27 20:43:14 +0100 (Mon, 27 Oct 2003)
       # Properties Last Updated: 2003-11-03 14:47:48 +0100 (Mon, 03 Nov 2003)
   
       d = {}
       for line in output.split('\n'):
           if not line.strip():
               continue
           key, value = line.split(':', 1)
           key = key.lower().replace(' ', '')
           value = value.strip()
           d[key] = value
       try:
           self.url = d['url']
       except KeyError:
           raise  ValueError, "Not a versioned resource"
           #raise ValueError, "Not a versioned resource %r" % path
       self.kind = d['nodekind'] == 'directory' and 'dir' or d['nodekind']
       self.rev = int(d['revision'])
       self.path = py.path.local(d['path'])
->     self.size = self.path.size()
       if 'lastchangedrev' in d:
           self.created_rev = int(d['lastchangedrev'])
       if 'lastchangedauthor' in d:
           self.last_author = d['lastchangedauthor']
       if 'lastchangeddate' in d:
           self.mtime = parse_wcinfotime(d['lastchangeddate'])
           self.time = self.mtime * 1000000