This is an archive of the discontinued Mercurial Phabricator instance.

manifest: add support for including directories outside narrowspec
ClosedPublic

Authored by martinvonz on Feb 13 2018, 5:48 PM.

Details

Summary

When using tree manifests and the client doesn't have a directory, we
have two choices for what to do with "hg manifest" output: 1) ignore
the directory, and 2) include the directory (not files within it). For
"hg files", we decided to ignore the directories (and files) outside
the narrowspec.

If we choose to not include directories outside the narrowspec, then I
think we should also make sure we don't include files outside the
narrowspec. I also think we should add --outside-narrow flag (or other
name). Thus, whichever way we go, I think we should have a way of
displaying paths (files or directories) outside the narrowspec. For
that we'll need to handle the 't' flag that narrowhg uses, and that's
what this patch adds support for.

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

martinvonz created this revision.Feb 13 2018, 5:48 PM
durin42 accepted this revision.Feb 14 2018, 8:34 PM
This revision is now accepted and ready to land.Feb 14 2018, 8:34 PM
This revision was automatically updated to reflect the committed changes.