Changeset 1189 in tailor


Ignore:
Timestamp:
06/25/06 18:38:58 (7 years ago)
Author:
ydirson@…
Hash name:
20060625163858-130f5-98592d5d52902e3fa0ce28f4fe59652535bca62a
Message:

Misc parent-repo fixes and cleanups

Do not use a default value of for parent-repo. Also fix a bug introduced
while moving parent-repo support out of tailor.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/git.py

    r1188 r1189  
    2626        Repository._load(self, project) 
    2727        self.EXECUTABLE = project.config.get(self.name, 'git-command', 'git') 
    28         self.PARENT_REPO = project.config.get(self.name, 'parent-repo', '') 
     28        self.PARENT_REPO = project.config.get(self.name, 'parent-repo') 
    2929        self.BRANCHPOINT = project.config.get(self.name, 'branchpoint', 'HEAD') 
    3030 
     
    350350 
    351351        if not exists(join(self.basedir, self.repository.METADIR)): 
    352             if self.repository.PARENT_REPO == '': 
     352            if not self.repository.PARENT_REPO: 
    353353                cmd = self.repository.command("init-db") 
    354354                init = ExternalCommand(cwd=self.basedir, command=cmd) 
     
    414414        SynchronizableTargetWorkingDir.importFirstRevision( 
    415415            self, source_repo, changeset, 
    416             initial or self.target.PARENT_REPO) 
     416            initial or self.repository.PARENT_REPO) 
Note: See TracChangeset for help on using the changeset viewer.