This is an archive of the discontinued Mercurial Phabricator instance.

treemanifest: support the {manifest} template
ClosedPublic

Authored by durham on Nov 2 2017, 8:26 PM.
Tags
None
Subscribers

Details

Reviewers
quark
Group Reviewers
Restricted Project
Commits
rFBHGX2dd048101c46: treemanifest: support the {manifest} template
Summary

The core Mercurial manifest template prints the rev number and the short hash.
Since treemanifest doesn't have rev numbers, this has to change. Let's just have
it print the whole hash, since manifest hashes are usually only ever used by
automation which probably wants the whole hash anyway.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durham created this revision.Nov 2 2017, 8:26 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 2 2017, 8:26 PM
quark accepted this revision.Nov 6 2017, 4:04 PM
quark added a subscriber: quark.
quark added inline comments.
treemanifest/__init__.py
163

This breaks {manifest % "{node}"}. Maybe add a comment saying we don't care about that use-case?

This revision is now accepted and ready to land.Nov 6 2017, 4:04 PM
durham added inline comments.Nov 7 2017, 11:59 AM
treemanifest/__init__.py
163

I didn't realize that was even possible. Do we use that anywhere?

quark added inline comments.Nov 7 2017, 5:29 PM
treemanifest/__init__.py
163

I think we didn't use that. The flexibility is for people wanting {rev} or {node}. I think it's fine to not support that with a comment noting the slight difference.

This revision was automatically updated to reflect the committed changes.