call site 1 for path.svnwc.__str__
path/svn/testing/test_wccommand.py - line 39
37
38
39
40
41
   def test_move_directory(self): # overrides base class
       try:
->         super(TestWCSvnCommandPath, self).test_move_directory()
       finally:
           self.root.revert(rec=1)
path/testing/fscommon.py - line 214
211
212
213
214
215
216
217
   def test_move_directory(self):
       source = self.root.join('sampledir') 
       dest = self.root.join('moveddir') 
->     source.move(dest)
       assert dest.check(dir=1)
       assert dest.join('otherfile').check(file=1) 
       assert not source.join('sampledir').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 ""