public RebaseCommand setUpstream(AnyObjectId upstream) {try {this.upstreamCommit = walk.parseCommit(upstream);this.upstreamCommitName = upstream.name();} catch (IOException e) {throw new JGitInternalException(MessageFormat.format(JGitText.get().couldNotReadObjectWhileParsingCommit,upstream.name()), e);}return this;}

public virtual NGit.Api.RebaseCommand SetUpstream(AnyObjectId upstream){try{this.upstreamCommit = walk.ParseCommit(upstream);this.upstreamCommitName = upstream.Name;}catch (IOException e){throw new JGitInternalException(MessageFormat.Format(JGitText.Get().couldNotReadObjectWhileParsingCommit, upstream.Name), e);}return this;}
