call site 5 for path.svnwc.dirpath
path/svn/testing/test_wccommand.py - line 200
199
200
201
202
203
204
205
206
207
   def test_ensure(self):
->     newpath = self.root.ensure('a', 'b', 'c')
       try:
           assert newpath.check(exists=1, versioned=1)
           newpath.write("hello")
           newpath.ensure()
           assert newpath.read() == "hello"
       finally:
           self.root.join('a').remove(force=1)
path/svn/wccommand.py - line 158
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
   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 137
136
137
138
139
140
141
142
   def _ensuredirs(self):
->     parent = self.dirpath()
       if parent.check(dir=0):
           parent._ensuredirs()
       if self.check(dir=0):
           self.mkdir()
       return self