Re: [fossil-users] [fossil all extras] useless without --showfile

2014-04-03 Thread Andy Goth

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


Re: [fossil-users] [fossil all extras] useless without --showfile

2014-04-03 Thread Joe Mistachkin

Andy Goth wrote:
 
 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.
 

Excellent idea.  Done here:

https://www.fossil-scm.org/index.html/info/69974aaa19c7

Thanks.

--
Joe Mistachkin

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] [fossil all extras] useless without --showfile

2014-04-02 Thread Joe Mistachkin

Andy Goth wrote:
 
 Without the --showfile option, [fossil all extras] just prints filenames 
 relative to the directories in which the repositories were opened.  It's 
 anyone's guess which files go with which directories and which 
 repositories.  Additionally, --showfile prints the names of all 
 directories, not just those that actually have extra files in them.
 

Good point; however, I could actually make a relatively good argument for
why it's not completely useless.

 
 I prefer the behavior of [fossil all changes].  By default it prints the 
 names of both the repositories and directories with changes, plus 
 doesn't print anything for directories with no changes.
 

I would prefer to be consistent as well; 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.

--
Joe Mistachkin

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] [fossil all extras] useless without --showfile

2014-04-02 Thread Andy Goth

On 4/2/2014 7:47 PM, Joe Mistachkin wrote:

Andy Goth wrote:

I prefer the behavior of [fossil all changes].  By default it prints
the names of both the repositories and directories with changes, plus
doesn't print anything for directories with no changes.


I would prefer to be consistent as well; 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.


I'm curious how a script could make use of [fossil extras] without the
benefit of the --showfile option.

--
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


Re: [fossil-users] [fossil all extras] useless without --showfile

2014-04-02 Thread Joe Mistachkin

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.

--
Joe Mistachkin

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users