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

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

Do whatever needed before replay and return the adapted changeset.

This implementation calls ``self._adaptEntries()``, then
executes the adapters defined by before-commit on the project:
each adapter is run in turn, and may return False to indicate
that the changeset shouldn't be replayed at all. They are
otherwise free to alter the changeset in any meaningful way.

Definition at line 215 of file target.py.

00215                                         :
        """
        Do whatever needed before replay and return the adapted changeset.

        This implementation calls ``self._adaptEntries()``, then
        executes the adapters defined by before-commit on the project:
        each adapter is run in turn, and may return False to indicate
        that the changeset shouldn't be replayed at all. They are
        otherwise free to alter the changeset in any meaningful way.
        """

        from copy import copy

        adapted = self._adaptEntries(changeset)
        if adapted:
            project = self.repository.projectref()
            if project.before_commit:
                adapted = copy(adapted)

                for adapter in project.before_commit:
                    if not adapter(self, adapted):
                        return None
        return adapted

    def _dismissChangeset(self, changeset):


Generated by  Doxygen 1.6.0   Back to index