This is an archive of the discontinued Mercurial Phabricator instance.

unlinkpath: make empty directory removal optional (issue5901) (issue5826)
AbandonedPublic

Authored by spectral on Jun 28 2018, 9:09 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

There are known cases where performing operations such as rebase from a
directory that is newly created can fail or at least lead to being in a
directory handle that no longer exists.

This is even reproducible by just doing something as simple as:

cd foo; hg rm *

The behavior is different if you use hg addremove, the directory is not
removed until we attempt to go back to the node after committing it:

cd foo; rm *; hg addremove; hg ci -m'bye foo'; hg co .^; hg co tip

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

spectral created this revision.Jun 28 2018, 9:09 PM
spectral abandoned this revision.Jun 28 2018, 9:39 PM

(Sorry for the double send)