This is an archive of the discontinued Mercurial Phabricator instance.

util: make util.dirs() and util.finddirs() include root directory (API)
ClosedPublic

Authored by martinvonz on May 17 2019, 1:57 PM.

Details

Summary

This changes the behavior of test-origbackup-conflict.t so it no
longer errors out when the backup path points to an existing
file. Instead, it replaces the file by a directory. That seems
reasonable to me.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

martinvonz created this revision.May 17 2019, 1:57 PM
martinvonz updated this revision to Diff 15180.May 17 2019, 2:05 PM
This revision was automatically updated to reflect the committed changes.
pulkit added a subscriber: pulkit.May 24 2019, 8:11 AM

it no longer errors out when the backup path points to an existing
file. Instead, it replaces the file by a directory.

I think this should be a part of relnotes.

In D6403#93612, @pulkit wrote:

it no longer errors out when the backup path points to an existing
file. Instead, it replaces the file by a directory.

I think this should be a part of relnotes.

Note that that's only if they have configured it incorrectly, but I think you're still right that it's worth mentioning. I'll send a patch.