[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: --strict vs --no-newline

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Tue, 17 Jun 2014 12:09:32 +0100

Julian Foad wrote:

[We had]
>   * svnversion --no-newline
>   * svn propget --strict           # basically means no-newline

    * svnlook youngest

    * svn youngest --no-newline

and I just added a --no-newline option to 'svnlook youngest':

    * svnlook youngest --no-newline

But now I notice that 'svnlook youngest' is the only 'svnlook' subcommand for which the '--no-newline' option is implemented, out of about seven commands for which it would make sense.

$ svnlook --help
   author               ALWAYS adds a newline
   date                 ALWAYS adds a newline
   filesize             ALWAYS adds a newline
   help (?, h)
   log                  ALWAYS adds a newline
   propget (pget, pg)   NEVER adds a newline
   proplist (plist, pl)
   uuid                 ALWAYS adds a newline
   youngest             OPTIONALLY adds a newline

Do we really want a new subcommand "svn youngest" for this?

We already have:

    # youngest rev in a WC

  svn info $URL | grep 'Revision:'
    # head revision of repo in which $URL exists

  svn info $URL | grep 'Last Changed Rev:'
    # youngest commit to file or subtree at URL

  svnversion --committed PATH
    # youngest commit to file or subtree at PATH

  svn info | grep 'UUID:'
    # repo UUID of repo at

> Now I intend to:
>   * make 'svn propget --strict --show-inherited-props' error out;
>   * make 'svn propget --no-newline' an alias for 'svn propget
> --strict'.

> How to do the latter, exactly? Either make '--strict' an option-name
> alias for '--no-newline', in which case 'svn youngest --strict'
> will become an available option; or keep the two options separate and have
> 'propget' accept both (with the same behaviour) and 'youngest'
> only accept '--no-newline'. Which is the cleaner UI, the one with fewer
> invocation options for the user or the one with fewer irregularities?
Received on 2014-06-18 02:39:35 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.