On 4/2/2014 11:42 PM, Joe Mistachkin wrote:
Andy Goth wrote:
I'm curious how a script could make use of [fossil extras] without
the benefit of the --showfile option.

The --showfile option is processed by the [fossil all] command, not
the [fossil extras] command, which basically explains the underlying
issue...

The [fossil extras] command itself has never printed the associated
repository information, while the [fossil changes] command has.

Most of that is clear from behavioral observation, but my question still
stands.  I ask the question in reference to your statement:

On 4/2/2014 7:47 PM, Joe Mistachkin wrote:
however, given the implementation of the [fossil extras] command
itself, it would be difficult to make the changes you are suggesting
without breaking backwards compatibility with existing scripts that
may wrap Fossil.

Backwards compatibility is a worthy goal, but I'm not sure how valuable
it is to maintain compatibility with something that could never have
worked in the first place and therefore may not even exist.

Now, an interesting detail.  [fossil changes] has a --header option
which implements the "Changes for REPOS at DIRECTORY:" headers, but
[fossil extras] does not have anything of the sort.  I see no harm in
adding it to [fossil extras].

The compatibility problem only arises when changing [fossil all] to
supply [fossil extras] with this new --header option, thereby changing
its output format.

A possible compromise is to have [fossil all] only give --header to
[fossil extras] when [fossil all] was not given --showfile.  I suggest
this on the presumption that any existing scripts that actually use
[fossil all extras] must use --showfile, because the output is otherwise
useless except for the limited purpose of saying whether or not there
exist any extra files, though not where exactly they are.

--
Andy Goth | <andrew.m.goth/at/gmail/dot/com>
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to