parameters: (self, merged_archive=None, other_archives=None)
docstring: Merge multiple archives into merged_archive by 'chaining' resources,
      only resources that are not part of the accumlated archive are added
docstring_summary: Merge multiple archives into merged_archive by 'chaining' resources,
      only resources that are not part of the accumlated archive are added
docstring_tokens: Merge multiple archives into merged_archive by chaining resources only resources that are not part of the accumlated archive are added
function: def merge(self, merged_archive=None, other_archives=None):
      """Merge multiple archives into merged_archive by 'chaining' resources,
      only resources that are not part of the accumlated archive are added"""
      if not other_archives:
        print 'No archives passed to merge'
        return
  
      # Note we already loaded 'replay_file'.
      print 'Loaded %d responses' % len(self)
  
      for archive in other_archives:
        if not os.path.exists(archive):
          print 'Error: Replay file "%s" does not exist' % archive
          return
  
        http_archive_other = HttpArchive.Load(archive)
        print 'Loaded %d responses from %s' % (len(http_archive_other), archive)
        for r in http_archive_other:
          # Only resources that are not already part of the current archive
          # get added.
          if r not in self:
            print '\t %s ' % r
            self[r] = http_archive_other[r]
      self.Persist('%s' % merged_archive)
function_tokens: def merge ( self , merged_archive = None , other_archives = None ) : if not other_archives : print 'No archives passed to merge' return # Note we already loaded 'replay_file'. print 'Loaded %d responses' % len ( self ) for archive in other_archives : if not os . path . exists ( archive ) : print 'Error: Replay file "%s" does not exist' % archive return http_archive_other = HttpArchive . Load ( archive ) print 'Loaded %d responses from %s' % ( len ( http_archive_other ) , archive ) for r in http_archive_other : # Only resources that are not already part of the current archive # get added. if r not in self : print '\t %s ' % r self [ r ] = http_archive_other [ r ] self . Persist ( '%s' % merged_archive )