call site 14 for path.svnwc.info
apigen/testing/test_apigen_example.py - line 167
166
167
168
169
170
171
   def test_build_function_pages(self):
->     self.apb.build_function_pages(['main.sub.func'])
       funcfile = self.base.join('api/main.sub.func.html')
       assert funcfile.check()
       html = funcfile.read()
       _checkhtml(html)
apigen/htmlgen.py - line 534
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
   def build_function_pages(self, method_dotted_names):
       passed = []
       for dotted_name in sorted(method_dotted_names):
           if self.capture:
               self.capture.err.writeorg('.')
           # XXX should we create a build_function_view instead?
           parent_dotted_name, _ = split_of_last_part(dotted_name)
           sibling_dotted_names = self.namespace_tree[parent_dotted_name]
           tag = H.Content(self.build_callable_view(dotted_name))
           nav = self.build_navigation(dotted_name, False)
           reltargetpath = "api/%s.html" % (dotted_name,)
           self.linker.set_link(dotted_name, reltargetpath)
           title = '%s API' % (dotted_name,)
->         rev = self.get_revision(dotted_name)
           if rev:
               title += ' [rev. %s]' % (rev,)
           self.write_page(title, reltargetpath, tag, nav)
       return passed
apigen/htmlgen.py - line 748
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
   def get_revision(self, dotted_name):
->     return get_package_revision(self.projroot)
       if dotted_name in self._revcache:
           return self._revcache[dotted_name]
       obj = get_obj(self.dsa, self.pkg, dotted_name)
       rev = None
       try:
           sourcefile = inspect.getsourcefile(obj)
       except TypeError:
           pass
       else:
           if sourcefile is not None:
               if sourcefile[-1] in ['o', 'c']:
                   sourcefile = sourcefile[:-1]
               wc = py.path.svnwc(sourcefile)
               if wc.check(versioned=True):
                   rev = wc.info().created_rev
       rev = rev or self.get_proj_revision()
       self._revcache[dotted_name] = rev
       return rev
apigen/htmlgen.py - line 179
173
174
175
176
177
178
179
180
181
182
183
184
185
186
   def get_package_revision(packageroot, _revcache={}):
       try:
           rev = _revcache[packageroot]
       except KeyError:
           wc = py.path.svnwc(packageroot)
           rev = None
->         if wc.check(versioned=True):
               rev = py.path.svnwc(packageroot).info().rev
           else:
               rev = 'unknown'
           _revcache[packageroot] = rev
       if packageroot.basename == "py": 
           assert rev is not None
       return rev
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