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

def vcpx::target::SyncronizableTargetWorkingDir::_normalizeEntryPaths (   self,
  entry 
) [private]

Normalize the name and old_name of an entry.

The ``name`` and ``old_name`` of an entry are pathnames coming
from the upstream system, and is usually (although there is no
guarantee it actually is) a UNIX style path with forward
slashes "/" as separators.

This implementation uses normpath to adapt the path to the
actual OS convention, but subclasses may eventually override
this to use their own canonicalization of ``name`` and
``old_name``.

Definition at line 154 of file target.py.

00154                                          :
        """
        Normalize the name and old_name of an entry.

        The ``name`` and ``old_name`` of an entry are pathnames coming
        from the upstream system, and is usually (although there is no
        guarantee it actually is) a UNIX style path with forward
        slashes "/" as separators.

        This implementation uses normpath to adapt the path to the
        actual OS convention, but subclasses may eventually override
        this to use their own canonicalization of ``name`` and
        ``old_name``.
        """

        from os.path import normpath

        entry.name = normpath(entry.name)
        if entry.old_name:
            entry.old_name = normpath(entry.old_name)

    def __adaptEntriesPath(self, changeset):


Generated by  Doxygen 1.6.0   Back to index