private final Lifecycle inspectorLifecycle;
public RawCsetParser(SessionContext.Source sessionContext, HgChangelog.Inspector delegate) {
assert delegate != null;
inspector = delegate;
csetBuilder = new ChangesetParser(sessionContext, new RawCsetFactory(true));
inspectorLifecycle = Adaptable.Factory.getAdapter(delegate, Lifecycle.class, null);
if (inspectorLifecycle == null) {
ProgressSupport ph = Adaptable.Factory.getAdapter(delegate, ProgressSupport.class, null);
CancelSupport cs = Adaptable.Factory.getAdapter(delegate, CancelSupport.class, null);
if (cs != null || ph != null) {