call site 7 for path.svnurl.join
path/svn/testing/test_urlcommand.py - line 18
17
18
19
20
21
22
23
   def test_move_file(self):  # overrides base class
->     p = self.root.ensure('origfile')
       newp = p.dirpath('newfile')
       p.move(newp)
       assert newp.check(file=1)
       newp.remove()
       assert not p.check()
path/svn/urlcommand.py - line 186
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
   def ensure(self, *args, **kwargs):
       """ ensure that an args-joined path exists (by default as
               a file). If you specify a keyword argument 'dir=True'
               then the path is forced to be a directory path.
           """
       if getattr(self, 'rev', None) is not None:
           raise py.error.EINVAL(self, "revisions are immutable")
       target = self.join(*args)
       dir = kwargs.get('dir', 0) 
       for x in target.parts(reverse=True): 
->         if x.check(): 
               break 
       else: 
           raise py.error.ENOENT(target, "has not any valid base!") 
       if x == target: 
           if not x.check(dir=dir): 
               raise dir and py.error.ENOTDIR(x) or py.error.EISDIR(x) 
           return x 
       tocreate = target.relto(x) 
       basename = tocreate.split(self.sep, 1)[0]
       tempdir = py.path.local.mkdtemp()
       try:    
           tempdir.ensure(tocreate, dir=dir) 
           cmd = 'svn import -m "%s" "%s" "%s"' % (
                   "ensure %s" % self._escape(tocreate), 
                   self._escape(tempdir.join(basename)), 
                   x.join(basename)._encodedurl())
           self._svncmdexecauth(cmd) 
           self._norev_delentry(x)
       finally:    
           tempdir.remove() 
       return target
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/svncommon.py - line 261
257
258
259
260
261
   def exists(self):
       try:
           return self.path.info()
       except py.error.ENOENT:
->         return self._listdirworks()
path/svn/svncommon.py - line 245
243
244
245
246
247
248
249
   def _listdirworks(self):
       try:
->         self.path.listdir()
       except py.error.ENOENT:
           return False
       else:
           return True
path/svn/svncommon.py - line 167
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
   def listdir(self, fil=None, sort=None):
       """ list directory contents, possibly filter by the given fil func
               and possibly sorted.
           """
       if isinstance(fil, str):
           fil = common.fnmatch(fil)
       nameinfo_seq = self._listdir_nameinfo()
       if len(nameinfo_seq) == 1:
           name, info = nameinfo_seq[0]
           if name == self.basename and info.kind == 'file':
               #if not self.check(dir=1):
               raise py.error.ENOTDIR(self)
->     paths = self._make_path_tuple(nameinfo_seq)
   
       if fil or sort:
           paths = filter(fil, paths)
           paths = isinstance(paths, list) and paths or list(paths)
           if callable(sort):
               paths.sort(sort)
           elif sort:
               paths.sort()
       return paths
path/svn/svncommon.py - line 207
201
202
203
204
205
206
207
208
209
   def _make_path_tuple(self, nameinfo_seq):
       """ return a tuple of paths from a nameinfo-tuple sequence.
           """
       #assert self.rev is not None, "revision of %s should not be None here" % self
       res = []
       for name, info in nameinfo_seq:
->         child = self.join(name)
           res.append(child)
       return tuple(res)