call site 1 for path.svnurl.__str__
path/svn/testing/test_urlcommand.py - line 28
25
26
27
28
29
30
31
   def test_move_dir(self):  # overrides base class
       p = self.root.ensure('origdir', dir=1)
       newp = p.dirpath('newdir')
->     p.move(newp)
       assert newp.check(dir=1)
       newp.remove()
       assert not p.check()
path/common.py - line 365
363
364
365
366
367
368
369
370
371
   def move(self, target):
       """ move this path to target. """
->     if target.relto(self):
           raise py.error.EINVAL(target, "cannot move path into a subdirectory of itself")
       try:
           self.rename(target)
       except py.error.EXDEV:  # invalid cross-device link
           self.copy(target)
           self.remove()
path/common.py - line 139
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
   def relto(self, relpath):
       """ return a string which is the relative part of the path
           to the given 'relpath'. 
           """
       if not isinstance(relpath, (str, PathBase)): 
           raise TypeError("%r: not a string or path object" %(relpath,))
->     strrelpath = str(relpath)
       if strrelpath and strrelpath[-1] != self.sep:
           strrelpath += self.sep
       #assert strrelpath[-1] == self.sep
       #assert strrelpath[-2] != self.sep
       strself = str(self)
       if strself.startswith(strrelpath):
           return strself[len(strrelpath):]
       return ""