Logo Search packages:      
Sourcecode: tailor version File versions  Download package

def vcpx::target::SyncronizableTargetWorkingDir::__adaptEntriesPath (   self,
  changeset 
) [private]

If the source basedir is a subdirectory of the target, adjust
all the pathnames adding the prefix computed by difference.

Definition at line 175 of file target.py.

00175                                            :
        """
        If the source basedir is a subdirectory of the target, adjust
        all the pathnames adding the prefix computed by difference.
        """

        from copy import deepcopy
        from os.path import join

        if not changeset.entries:
            return changeset

        prefix = self.__getPrefixToSource()
        adapted = deepcopy(changeset)
        for e in adapted.entries:
            if prefix:
                e.name = join(prefix, e.name)
                if e.old_name:
                    e.old_name = join(prefix, e.old_name)
            self._normalizeEntryPaths(e)
        return adapted

    def _adaptEntries(self, changeset):


Generated by  Doxygen 1.6.0   Back to index