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

Re: [PATCH] svnversion --no-stat (and an idea about changelists)

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Mon, 9 Dec 2019 10:31:37 +0100

On Mon, Dec 9, 2019 at 9:01 AM Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
>
> Any further comments on either of the topics below? In particular, the
> patch acceptable?
>
> Daniel Shahaf wrote on Mon, 02 Dec 2019 00:08 +00:00:
> > Julian Foad wrote on Sun, Dec 01, 2019 at 12:01:09 +0000:
> > > Daniel Shahaf wrote:
> > > > I'd like to get the "is this WC mixed revision?" and "is this WC switched?" bits without stat()-ing every single file in the worktree.
> > >
> > > What info do you actually want, functionally? Some info about the WC base "shape" like "svn info --x-viewspec" gives?
> >
> > I want to know whether the WC is mixed revision, like I said But let
> > me give some background about my use-case.
> >

Hm, I'm not a fan of the option name "--no-stat". Perhaps this skips
"stat's", but does even more work by reading and checksumming every
file? A name like "--ignore-text-mods" or some such (that you
suggested elsethread) sounds better to me. Or "--metadata-only" or
something like that?

OTOH, I also like Julian's suggestion to piggy-back on "svn info
--x-viewspec". Or perhaps "svn info" should grow a "--summarize"
option which would give similar output to svnversion? Just thinking
out loud here ...

> ⋮
> > ----
> >
> > Not related to svnversion: In my use-case, another thing that'd be nice
> > to have is an overview of the changelists in the working copy — again,
> > without actually doing a tree walk. I can think of two shapes an API
> > for this might take:

I have no informed opinion about this. Though ISTR that there were
other recent discussions on dev@ surrounding changelists, like the one
started here:
https://svn.haxx.se/dev/archive-2019-11/0037.shtml

I'd prefer these various bits to be laid together, so we can come up
with a more general improvement, with a clear and consistent UI for
changelists, which also covers your use case.

-- 
Johan
Received on 2019-12-09 10:31:55 CET

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.