Changeset 1521 in tailor
- Timestamp:
- 05/21/08 03:16:21 (5 years ago)
- Hash name:
- 20080521011621-97f81-e59b203d556b383dc956b1a44bf109f05e94a605
- Location:
- vcpx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vcpx/target.py
r1471 r1521 97 97 changelog = changeset.log 98 98 return patchname, changelog 99 100 def _prepareToReplayChangeset(self, changeset): 101 """ 102 This is called **before** fetching and applying the source 103 changeset. This implementation does nothing more than 104 returning True. Subclasses may override it, for example to 105 preexecute some entries such as moves. 106 107 Returning False the changeset won't be applied and the 108 process will stop. 109 """ 110 111 return True 99 112 100 113 def replayChangeset(self, changeset): -
vcpx/dualwd.py
r1413 r1521 93 93 94 94 def applyPendingChangesets(self, applyable=None, replay=None, applied=None): 95 def pre_replay(changeset): 96 if applyable and not applyable(changeset): 97 return 98 return self.target._prepareToReplayChangeset(changeset) 99 95 100 return self.source.applyPendingChangesets(replay=self.replayChangeset, 96 applyable= applyable,101 applyable=pre_replay, 97 102 applied=applied) 98 103
Note: See TracChangeset
for help on using the changeset viewer.
