Пример #1
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()