This is an archive of the discontinued Mercurial Phabricator instance.

rebase: add lock to cover whole dryrun process
ClosedPublic

Authored by khanchi97 on Jun 28 2018, 4:09 PM.

Details

Summary

Before this patch it is easy for another hg to interrupt
the dryrun. This patch make sure that dryrun will complete
without any interruption.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

khanchi97 created this revision.Jun 28 2018, 4:09 PM
yuja added a subscriber: yuja.Jun 29 2018, 9:03 AM
if dryrun:
  • leaveunfinished = True
  • inmemory = True rbsrt = rebaseruntime(repo, ui, inmemory, opts)

Perhaps this is wrong. inmemory should be set to True, right?

In D3854#60248, @yuja wrote:
if dryrun:
  • leaveunfinished = True
  • inmemory = True rbsrt = rebaseruntime(repo, ui, inmemory, opts)

Perhaps this is wrong. inmemory should be set to True, right?

Oops!

khanchi97 updated this revision to Diff 9354.Jun 29 2018, 2:08 PM
This revision was automatically updated to reflect the committed changes.
yuja added a comment.Jun 29 2018, 10:01 PM

Rebased on top of 2394cd58b81f and queued, thanks.