Ejemplo n.º 1
0
 def __init__(self, need_unexpand, tempdir):
     OutputHandler.__init__(self)
     self.rev = None
     self.revs = RevList()
     self.need_unexpand = need_unexpand
     self.tempfile = None
     self.tempdir = tempdir
     self.progress = ProgressReporter()
     self.progress.progress_init_indeterminate()
Ejemplo n.º 2
0
    def __init__(self, ctx):
        self.ctx = ctx
        self.fastimport = FastImport(self.ctx)
        self.fastimport.set_timezone(self.ctx.timezone)
        self.fastimport.set_project_root_path(self.ctx.contentlocalroot)
        self.perf = p4gf_profiler.TimerCounterSet()
        self.perf.add_timers([
            OVERALL, (SETUP, OVERALL), (PRINT, OVERALL), (FSTAT, OVERALL),
            (SYNC, OVERALL), (FAST_IMPORT, OVERALL), (MIRROR, OVERALL),
            (MERGE, OVERALL), (PACK, OVERALL)
        ])

        self.rev_range = None  # RevRange instance set in copy().
        self.graft_change = None  #
        self.changes = None  # dict['changelist'] ==> P4Changelist of what to copy()
        self.printed_revs = None  # RevList produced by PrintHandler
        self.status_verbose = True
        self.progress = ProgressReporter()
Ejemplo n.º 3
0
 def __init__(self, ctx):
     self.ctx = ctx
     self.addeditdelete = {}
     self.perf = p4gf_profiler.TimerCounterSet()
     self.perf.add_timers([
         OVERALL,
         (FAST_EXPORT, OVERALL),
         (TEST_BLOCK_PUSH, OVERALL),
         (CHECK_CONFLICT, OVERALL),
         (COPY, OVERALL),
         (GIT_CHECKOUT, COPY),
         (CHECK_PROTECTS, COPY),
         (COPY_BLOBS_1, COPY),
         (COPY_BLOBS_2, COPY),
         (MIRROR, OVERALL),
     ])
     self.perf.add_counters([N_BLOBS, N_RENAMES])
     self.usermap = p4gf_usermap.UserMap(ctx.p4gf)
     self.progress = ProgressReporter()
 def __init__(self, view_name):
     self.git_objects = GitObjectList()
     self.perf = p4gf_profiler.TimerCounterSet()
     self.perf.add_timers([
         OVERALL,
         (BUILD, OVERALL),
         (CAT_FILE, BUILD),
         (LS_TREE, BUILD),
         (LS_TREE_PROCESS, BUILD),
         (DIFF_TREE, BUILD),
         (DIFF_TREE_PROCESS, BUILD),
         (ADD_SUBMIT, OVERALL),
         (EXTRACT_OBJECTS, ADD_SUBMIT),
         (P4_FSTAT, ADD_SUBMIT),
         (P4_ADD, ADD_SUBMIT),
         (P4_SUBMIT, ADD_SUBMIT),
     ])
     self.perf.add_counters([(CAT_FILE_COUNT, "files"),
                             (CAT_FILE_SIZE, "bytes")])
     self.progress = ProgressReporter()
     self.view_name = view_name