On Tue, Nov 21, 2017 at 6:43 PM, <fossil-users-requ...@lists.fossil-scm.org>
wrote:
>
> Date: Tue, 21 Nov 2017 15:25:37 -0700
> From: Warren Young <war...@etr-usa.com>
> Subject: Re: [fossil-users] Fossil-NG ideas
>
> On Nov 21, 2017, at 2:09 PM, Ron W <ronw.m...@gmail.com> wrote:
> >
> > While I like the idea of a "smart default" for the file name, I'd rather
> have an "--open" (or "-o") option to trigger the automatic "fossil open”.
>
> So…you want to remain more difficult to use than Git in this regard?
>

"fossil clone -o URL" would still be 1 step instead of 4 steps.


> > 1. If the user actually wants to specify the name, the option would be
> needed, anyway.
>
> No, they’d pass the FILENAME argument to “fossil clone,” just as you do
> today.
>

My understanding of your proposal was that leaving off the file name would
be the trigger for the git-like behavior.

So, I would expect "fossil clone URL filename" to do what it does today:
Create a repository file with the specified filename. No more.


> This does open a new issue, however.  What does this mean:
>
>     $ fossil clone https://fossil-scm.org/ fsl
>
> Do you:
>
> a) get a fsl subdirectory containing the contents of the Fossil trunk
> checkout, as Git would do; or
>
> b) get a fsl.fossil file, as someone up-thread apparently wants.  That is,
> assume the FILENAME argument is still a repository file name, and that if
> .fossil is not given as an extension, add it?  Or
>
> c) get a fsl file, as Fossil 2.4 and all prior versions do?


I would expect c - do as Fossil does, today.

If I want the git-like behavior, I'd type "fossil clone -o
https://fossil-scm.org/ fsl"

I'm all for "stealing" features from other VCSs. Just don't change break
existing command syntax.

As for something I'd suggest stealing, how about enhancing "fossil
checkout" to accept an optional URL?

When I first started using Fossil, one of the things that was confusing to
me is that "svn checkout" maps to "fossil open", not "fossil checkout". It
is still something I help others migrating from SVN to Fossil. If Fossil
did not have a checkout command, it would have been less confusing. What I
tell those I help is "Just use 'fossil open' and pretend there is no
'fossil checkout'."

Anyway, "fossil checkout" could be made more like "svn checkout" merely by
extending the syntax to allow an optional URL.
_______________________________________________
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