call site 1 for path.svnwc.dirpath
path/svn/testing/test_wccommand.py - line 246
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
   def test_lock_unlock(self):
       root = self.root
       somefile = root.join('somefile')
->     somefile.ensure(file=True)
       # not yet added to repo
       py.test.raises(py.process.cmdexec.Error, 'somefile.lock()')
       somefile.write('foo')
       somefile.commit('test')
       assert somefile.check(versioned=True)
       somefile.lock()
       try:
           locked = root.status().locked
           assert len(locked) == 1
           assert normpath(str(locked[0])) == normpath(str(somefile))
           #assert somefile.locked()
           py.test.raises(Exception, 'somefile.lock()')
       finally:
           somefile.unlock()
       #assert not somefile.locked()
       locked = root.status().locked
       assert locked == []
       py.test.raises(Exception, 'somefile,unlock()')
       somefile.remove()
path/svn/wccommand.py - line 169
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
   def ensure(self, *args, **kwargs):
       """ ensure that an args-joined path exists (by default as
               a file). if you specify a keyword argument 'directory=True'
               then the path is forced  to be a directory path.
           """
       try:
           p = self.join(*args)
           if p.check():
               if p.check(versioned=False):
                   p.add()
               return p 
           if kwargs.get('dir', 0):
               return p._ensuredirs()
           parent = p.dirpath()
->         parent._ensuredirs()
           p.write("")
           p.add()
           return p
       except:
           error_enhance(sys.exc_info())
path/svn/wccommand.py - line 148
147
148
149
150
151
152
153
   def _ensuredirs(self):
->     parent = self.dirpath()
       if parent.check(dir=0):
           parent._ensuredirs()
       if self.check(dir=0):
           self.mkdir()
       return self