Comment 1 by Stephen Leake, Nov 20, 2010
In general, automate commands don't have default arguments. The design is that automate commands are used by front-end tools, which can easily provide all the required parameters. It also simplifies the testing, to not have to test defaults.
Comment 2 by Tony Cooper, Nov 20, 2010
Ok fair enough, but why does get_manifest_of not do the same? I think it's a pity to have this inconsistency.
Comment 3 by Thomas Keller, Nov 20, 2010
Hi Tony! The reason why get_extended_manifest_of doesn't work with only a workspace given is because its output would have to deal with workspace changes which happened since the base revision. The old get_roster command did that and produced something halfwhat usable, but the file size output which we "attach" afterwards to the roster format is not easily possible in this scenario and trust me, many parts of mtn's internal roster code still scare me and would you as well, so I decided to not touch them. The result is a compromise - have one (extended) format for committed changesets and use inventory for uncommitted / workspace changesets. We can easily add more fields to inventory from the roster if needed (right now the most prominent "recent" addition was the birth revision stanza), but I'd do that on individual request. Thomas.
Comment 4 by Tony Cooper, Nov 24, 2010
Hia Thomas, No that's fine, I understand. I guess the idea of removing the potentially useful `default to workspace' feature of get_manifest_of() for the sake of consistency is a step in the wrong direction. I have marked this ticket as wont-fix so as to save further time being wasted on it. Cheers, Tony.
Status:
WontFix
Sign in to reply to this comment.
Reported by Tony Cooper, Nov 20, 2010