call site 0 for path.local.common
execnet/testing/test_rsync.py - line 106
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
   def test_symlink_rsync(self):
       if py.std.sys.platform == 'win32':
           py.test.skip("symlinks are unsupported on Windows.")
       source = self.source
       dest = self.dest1
       self.source.ensure("existant")
->     source.join("rellink").mksymlinkto(source.join("existant"), absolute=0)
       source.join('abslink').mksymlinkto(source.join("existant"))
           
       rsync = RSync(source)
       rsync.add_target(gw, dest)
       rsync.send()
           
       assert dest.join('rellink').readlink() == dest.join("existant")
       assert dest.join('abslink').readlink() == dest.join("existant")
path/local/posix.py - line 94
89
90
91
92
93
94
95
96
97
98
99
100
   def mksymlinkto(self, value, absolute=1):
       """ create a symbolic link with the given value (pointing to another name). """
       if absolute:
           self._callex(os.symlink, str(value), self.strpath)
       else:
->         base = self.common(value)
           # with posix local paths '/' is always a common base
           relsource = self.__class__(value).relto(base)
           reldest = self.relto(base)
           n = reldest.count(self.sep)
           target = self.sep.join(('..', )*n + (relsource, ))
           self._callex(os.symlink, target, self.strpath)