Changeset 498 for CMT


Ignore:
Timestamp:
Apr 29, 2009, 7:28:47 PM (15 years ago)
Author:
rybkin
Message:

See C.L. 393

Location:
CMT/HEAD
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r497 r498  
     12009-04-29    <rybkin@lal.in2p3.fr> 393
     2       
     3        * mgr/cmt_svn_checkout.py: To allow for checkout of branch tags
     4       
    152009-04-29    <rybkin@lal.in2p3.fr> 392
    26       
    37        * source/cmt_system.cxx: In function CmtSystem::execute, return -1 on
    48        failure and return status of the command otherwise
    5         * source/cmt_vcs.cxx: Ensure "cmt checkout" command exist status is set to
     9        * source/cmt_vcs.cxx: Ensure "cmt checkout" command exit status is set to
    610        a nonzero value on error. In particular, in function execute_and_retry, on
    711        failure, exit with the exit status of the last failed command, in function
     
    1620        * source/cmt_error.cxx: idem
    1721        * source/cmt_commands.cxx: Set CmtError::syntax_error for "cmt checkout"
    18         command when appropriate to ensure the exist status is set to a nonzero
     22        command when appropriate to ensure the exit status is set to a nonzero
    1923        value on error. Add the mention of SVN to help message
    2024        * source/cmt_vcs.h: Declare generic CVS-like checkout class Vcs (for
  • CMT/HEAD/mgr/cmt_svn_checkout.py

    r497 r498  
    2323"""
    2424
    25 __version__ = '0.1.2'
    26 __date__ = 'Mon Apr 28 2009'
     25__version__ = '0.1.4'
     26__date__ = 'Mon Apr 29 2009'
    2727__author__ = 'Grigory Rybkin'
    2828
     
    253253
    254254            if m.head:
    255                 m.url = posixpath.join(m.url, self.trunk)
     255                m.URL = [posixpath.join(m.url, self.trunk)]
    256256            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]
    259264
    260265            if cmt_context.with_version_directory:
     
    265270
    266271            m.init = True
     272#            print m.URL, m.path, m.init
    267273           
    268274#        for m in self.modules:
     
    275281        for m in self.modules:
    276282            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
    289305                continue
     306
    290307#            print 'Checked out revision %i.' % result_rev
    291308            scc = cmt_context.configure(m.path, m.version)
Note: See TracChangeset for help on using the changeset viewer.