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

Roll your own `svn status' output

From: Matthew Braithwaite <matt_at_braithwaite.net>
Date: 2000-10-30 10:43:38 CET

On Fri, 27 Oct 2000 11:19:00 -0700, Bruce Korb <bkorb@sco.COM> said:
> At the risk of causing a ``not another library'' flame fest, may I
> suggest yet another library? :-) With the snprintfv library (which
> is in the process of being incorporated into libiberty, BTW), you
> can register a callback for the format specifier (as rpm does
> above). So:
> "%-10{ver}..."
> could be used to left justify a 10 character field for the version.
> So, you just select a very useful one-line format for the default
> and give people lots of rope....

I don't know the library but I heartily second the intention. This is
exactly analogous to the way `date' exports the strftime(3) interface,
which is super handy for shell scripts. What to know what year it is?
Want to get the date in a format that can be passed to `cvs checkout
-D'? No problem.

In the same way, one can imagine that a rich set of format specifiers
usable with `svn status' would simplify the scripting of various svn
operations by removing the ugly task of parsing svn's human-readable

I'm not sure this is wholly redundant with Jim's suggestion of a
``script'' knob, but IMO it's at least as useful.
Received on Sat Oct 21 14:36:13 2006

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