Changeset 1391 in tailor
- Timestamp:
- 06/15/07 17:05:00 (6 years ago)
- Hash name:
- 20070615150500-e66d1-311dc867097c690062eada6b41c9e191818c1e72
- Files:
-
- 2 edited
-
vcpx/repository/svn.py (modified) (3 diffs)
-
README (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/repository/svn.py
r1390 r1391 41 41 self.commit_all_files = cget(self.name, 'commit-all-files', True) 42 42 self.tags_path = cget(self.name, 'svn-tags', '/tags') 43 self.branches_path = cget(self.name, 'svn-branches', '/branches') 43 44 self._setupTagsDirectory = None 44 45 … … 106 107 self.tags_path, self.name) 107 108 self.tags_path = '/' + self.tags_path 109 110 if not self.branches_path.startswith('/'): 111 self.log.debug("Prepending '/' to svn-branches %r in %r", 112 self.branches_path, self.name) 113 self.branches_path = '/' + self.branches_path 108 114 109 115 def create(self): … … 163 169 svnls.execute(self.repository + self.module) 164 170 if svnls.exit_status: 171 172 paths = [] 173 174 # Auto detect missing "branches/" 175 if self.module.startswith(self.branches_path + '/'): 176 path = self.repository + self.branches_path 177 cmd = self.command("ls") 178 svnls = ExternalCommand(command=cmd) 179 svnls.execute(path) 180 if svnls.exit_status: 181 paths.append(path) 182 183 paths.append(self.repository + self.module) 165 184 cmd = self.command("mkdir", "-m", 166 185 "This directory will host the upstream sources") 167 186 svnmkdir = ExternalCommand(command=cmd) 168 svnmkdir.execute( self.repository + self.module)187 svnmkdir.execute(paths) 169 188 if svnmkdir.exit_status: 170 189 raise TargetInitializationFailure("Was not able to create the " -
README
r1389 r1391 919 919 *tags* by default. 920 920 921 svn-branches : string 922 Branches will copy under that directory. 923 924 *branches* by default. 925 926 .. note:: Target module for branches **must** start with ``branches/``. 927 Every branch must configure in a single-repository mode. 928 929 Example: ``module = branches/branch.name`` 930 921 931 tla 922 932 %%%
Note: See TracChangeset
for help on using the changeset viewer.
