HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #403

Ticket #403: bzr.patch

File bzr.patch, 1008 bytes (added by jrabbit, 5 years ago)

faster branching (thanks phoudoin)

  • haikuporter

     
    515515 
    516516                for src_uri in self.bepKeys['SRC_URI']: 
    517517                        # Examine the uri to determine if we need to perform a checkout instead of download 
    518                         if re.match('^cvs.*$|^svn.*$|^hg.*$|^git.*$', src_uri): 
     518                        if re.match('^cvs.*$|^svn.*$|^hg.*$|^git.*$|^bzr.*$', src_uri): 
    519519                                self.checkoutSource(src_uri) 
    520520                                return 
    521521 
    … …  
    608608                                checkoutCommand += " -r " + rev 
    609609                        checkoutCommand += " " + real_uri + " " + checkoutDir 
    610610 
     611                elif type == 'bzr': 
     612                        #http://doc.bazaar.canonical.com/bzr-0.10/bzr_man.htm#bzr-branch-from-location-to-location 
     613                        checkoutCommand = "bzr branch --lightweight" 
     614                        if rev: 
     615                                checkoutCommand += " -r " + rev 
     616                        checkoutCommand += " " + real_uri + " " + checkoutDir    
     617 
    611618                else: 
    612619                        #TODO Skip the initial checkout if a rev is specified? 
    613620                        checkoutCommand = "git clone " + real_uri + " " + checkoutDir 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/