This is an archive of the discontinued Mercurial Phabricator instance.

context: safegaurd against 'lx' being passed as file flag in manifest
ClosedPublic

Authored by pulkit on Jul 30 2018, 6:08 AM.

Details

Summary

Subversion can have a file as executable link. When using hgsubversion, we will
have both islink and isexec True. This will lead to _flags being set to lx.
However, manifest expects flag to be one-byte so it will crash if 'lx' is
passed. Also it's impossible to have an executable link.

This patch will safegaurd us from having 'lx' being a possible value.

This was authored by Ivan Lezhankin from Yandex.

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

pulkit created this revision.Jul 30 2018, 6:08 AM
indygreg accepted this revision.Jul 31 2018, 4:54 PM
This revision is now accepted and ready to land.Jul 31 2018, 4:54 PM
This revision was automatically updated to reflect the committed changes.