Changeset 1211 in tailor
- Timestamp:
- 07/03/06 01:29:16 (7 years ago)
- Hash name:
- 20060702232916-130f5-728038e54e0a59bb3567d8aa170610c2eaf370ff
- Location:
- vcpx/repository/git
- Files:
-
- 3 added
- 1 moved
-
target.py (moved) (moved from vcpx/repository/git.py) (4 diffs)
-
. (added)
-
__init__.py (added)
-
source.py (added)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/repository/git/target.py
r1210 r1211 9 9 10 10 """ 11 This module implements the backend for Git using git-core.11 This module implements the target backend for Git using git-core. 12 12 """ 13 13 … … 17 17 from vcpx.shwrap import ExternalCommand, PIPE 18 18 from vcpx.config import ConfigurationError 19 from vcpx.source import UpdatableSourceWorkingDir, GetUpstreamChangesetsFailure20 from vcpx.source import ChangesetApplicationFailure21 19 from vcpx.target import SynchronizableTargetWorkingDir, TargetInitializationFailure 22 20 23 21 from vcpx import TailorException 22 23 from vcpx.repository.git import GitExternalCommand 24 24 25 25 class BranchpointFailure(TailorException): … … 83 83 """Execute the command, with controlled environment.""" 84 84 85 from os import environ 86 87 env = environ.copy() 88 env.update(self.repo.env) 89 90 if kwargs.has_key('env'): 91 env.update(kwargs['env']) 92 93 kwargs['env'] = env 85 if not kwargs.has_key('env'): 86 kwargs['env'] = {} 87 88 kwargs['env'].update(self.repo.env) 94 89 95 90 return ExternalCommand.execute(self, *args, **kwargs) … … 230 225 return self.repository._tryCommand(['rev-parse', '--verify', revision], GetUpstreamChangesetsFailure)[0] 231 226 232 ## SynchronizableTargetWorkingDir 227 class GitTargetWorkingDir(SynchronizableTargetWorkingDir): 233 228 234 229 def _addPathnames(self, names):
Note: See TracChangeset
for help on using the changeset viewer.
