call site 5 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 144
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
   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())
           process.cmdexec(cmd) 
           self._lsnorevcache.delentry(x.strpath)  # !!! 
       finally:    
           tempdir.remove() 
       return target
path/common.py - line 157
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
   def parts(self, reverse=False):
       """ return a root-first list of all ancestor directories
               plus the path itself.
           """
       current = self
       l = [self]
       while 1:
           last = current
->         current = current.dirpath()
           if last == current:
               break
           l.insert(0, current)
       if reverse:
           l.reverse()
       return l
path/svn/urlcommand.py - line 96
88
89
90
91
92
93
94
95
96
97
98
   def dirpath(self, *args, **kwargs):
       """ return the directory path of the current path joined
               with any given path arguments.
           """
       l = self.strpath.split(self.sep) 
       if len(l) < 4: 
           raise py.error.EINVAL(self, "base is not valid") 
       elif len(l) == 4: 
->         return self.join(*args, **kwargs) 
       else: 
           return self.new(basename='').join(*args, **kwargs)