Changeset 606 in tailor
- Timestamp:
- 08/17/05 01:26:00 (8 years ago)
- Hash name:
- 20050816232600-97f81-658f4fbf1a44c7066caaf2689aaa9c96f00f56af
- File:
-
- 1 edited
-
vcpx/cdv.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/cdv.py
r570 r606 60 60 61 61 if not entries: 62 entries = ['. ']62 entries = ['...'] 63 63 64 64 c = ExternalCommand(cwd=self.basedir, command=cmd) … … 85 85 ExternalCommand(cwd=self.basedir, command=cmd).execute(oldname, newname) 86 86 87 def initializeNewWorkingDir(self, source_repo, changeset, initial): 88 """ 89 Initialize a new working directory, just extracted from 90 some other VC system, importing everything's there. 91 """ 92 93 from target import AUTHOR, HOST, BOOTSTRAP_PATCHNAME, \ 94 BOOTSTRAP_CHANGELOG 95 96 self._initializeWorkingDir() 97 revision = changeset.revision 98 source_repository = source_repo.repository 99 source_module = source_repo.module or '' 100 if initial: 101 author = changeset.author 102 patchname = changeset.log 103 log = None 104 else: 105 author = "%s@%s" % (AUTHOR, HOST) 106 patchname = BOOTSTRAP_PATCHNAME 107 log = BOOTSTRAP_CHANGELOG % locals() 108 self._commit(changeset.date, author, patchname, log, 109 entries=['%s/...' % self.basedir]) 110 111 def _initializeWorkingDir(self): 87 def _prepareTargetRepository(self, source_repo): 112 88 """ 113 89 Execute ``cdv init``. 114 90 """ 115 116 from os import getenv117 from os.path import join118 91 119 92 init = ExternalCommand(cwd=self.basedir, … … 125 98 "%s returned status %s" % (str(init), init.exit_status)) 126 99 100 def _prepareWorkingDirectory(self, source_repo): 101 """ 102 Set the user on the repository. 103 """ 104 105 from os import getenv 106 from os.path import join 107 127 108 cmd = [self.repository.CDV_CMD, "set", "user"] 128 109 user = getenv('CDV_USER') or getenv('LOGNAME') 129 110 ExternalCommand(cwd=self.basedir, command=cmd).execute(user) 130 131 SyncronizableTargetWorkingDir._initializeWorkingDir(self)
Note: See TracChangeset
for help on using the changeset viewer.
