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

See C.L. 393

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.