This is an archive of the discontinued Mercurial Phabricator instance.

util: add safename function for generating safe names to rename to
ClosedPublic

Authored by mbthomas on Sep 22 2017, 5:28 AM.

Details

Summary

This function finds a name which does not clash with any other name in the
manifest, and so can be used to safely rename a file.

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

mbthomas created this revision.Sep 22 2017, 5:28 AM
ryanmce accepted this revision.Sep 25 2017, 4:07 PM
ryanmce added a subscriber: ryanmce.

Looks straightforward.

mbthomas updated this revision to Diff 2219.Oct 1 2017, 5:33 AM
mbthomas updated this revision to Diff 2360.Oct 2 2017, 5:15 PM
ryanmce accepted this revision.Oct 5 2017, 12:34 PM

still lgtm

This revision was automatically updated to reflect the committed changes.