- Timestamp:
- Apr 29, 2009, 7:28:47 PM (15 years ago)
- Location:
- CMT/HEAD
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/ChangeLog
r497 r498 1 2009-04-29 <rybkin@lal.in2p3.fr> 393 2 3 * mgr/cmt_svn_checkout.py: To allow for checkout of branch tags 4 1 5 2009-04-29 <rybkin@lal.in2p3.fr> 392 2 6 3 7 * source/cmt_system.cxx: In function CmtSystem::execute, return -1 on 4 8 failure and return status of the command otherwise 5 * source/cmt_vcs.cxx: Ensure "cmt checkout" command exi st status is set to9 * source/cmt_vcs.cxx: Ensure "cmt checkout" command exit status is set to 6 10 a nonzero value on error. In particular, in function execute_and_retry, on 7 11 failure, exit with the exit status of the last failed command, in function … … 16 20 * source/cmt_error.cxx: idem 17 21 * source/cmt_commands.cxx: Set CmtError::syntax_error for "cmt checkout" 18 command when appropriate to ensure the exi st status is set to a nonzero22 command when appropriate to ensure the exit status is set to a nonzero 19 23 value on error. Add the mention of SVN to help message 20 24 * source/cmt_vcs.h: Declare generic CVS-like checkout class Vcs (for -
CMT/HEAD/mgr/cmt_svn_checkout.py
r497 r498 23 23 """ 24 24 25 __version__ = '0.1. 2'26 __date__ = 'Mon Apr 2 82009'25 __version__ = '0.1.4' 26 __date__ = 'Mon Apr 29 2009' 27 27 __author__ = 'Grigory Rybkin' 28 28 … … 253 253 254 254 if m.head: 255 m. url = posixpath.join(m.url, self.trunk)255 m.URL = [posixpath.join(m.url, self.trunk)] 256 256 else: 257 m.url = posixpath.join(m.url, self.tags, m.version) 258 m.url = core.svn_path_canonicalize(m.url) 257 # m.url = posixpath.join(m.url, self.tags, m.version) 258 m.URL = [posixpath.join(m.url, p, m.version) 259 for p in (self.tags, self.branches)] 260 #m.URL = [posixpath.join(m.url, self.tags, m.version), 261 # posixpath.join(m.url, self.branches, m.version)] 262 #m.url = core.svn_path_canonicalize(m.url) 263 m.URL = [core.svn_path_canonicalize(url) for url in m.URL] 259 264 260 265 if cmt_context.with_version_directory: … … 265 270 266 271 m.init = True 272 # print m.URL, m.path, m.init 267 273 268 274 # for m in self.modules: … … 275 281 for m in self.modules: 276 282 if not m.init: continue 277 try: 278 # print 'client.checkout2:', m.url, m.path 279 result_rev = client.checkout2(m.url, 280 m.path, 281 self.head_revision, 282 self.head_revision, 283 True, 284 True, 285 client_context()) 286 except core.SubversionException, e: 287 print >> sys.stderr, e 288 sc += 1 283 done = False 284 err = [] 285 for url in m.URL: 286 try: 287 #print 'client.checkout2:', url, m.path 288 result_rev = client.checkout2(url, 289 m.path, 290 self.head_revision, 291 self.head_revision, 292 True, 293 True, 294 client_context()) 295 except core.SubversionException, e: 296 err.append(e) 297 continue 298 done = True 299 break 300 301 if not done: 302 for e in err: 303 print >> sys.stderr, e 304 sc += 1 289 305 continue 306 290 307 # print 'Checked out revision %i.' % result_rev 291 308 scc = cmt_context.configure(m.path, m.version)
Note: See TracChangeset
for help on using the changeset viewer.