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

Re: [PATCH] cmdclient option human-readable

From: Benjamin Pflugmann <benjamin-svn-dev_at_pflugmann.de>
Date: 2004-03-13 12:47:49 CET

Hi!

On Fri 2004-03-12 at 20:11:18 -0300, H. Hernan Moraldo wrote:
> Log:
>
> Added a new option to the cmdclient status command: --human-readable now
> produces an easier to read output, specially for new SVN users.
[...]
> I'm not sure you'll like this feature (at least I think I like it!), but
> here is it implemented. Now you can call
>
> "svn status -v --human-readable"
>
> and obtain a response like this:
>
> .dist-sandbox:
> Unversioned file
> Properties haven't been modified
> No revision number
> Working copy is up to date
> File has never been commited
> No commit author

I like the feature much (who - except perhaps the core developers
themselves - hasn't wonders one time or another what a particular
ouput meant), but not as part of command line client itself.

How about a script that takes the output of the client and produces
what you have written above. So that I can call it like this:

  $ svn status -v | svn-human-readable

and get the output you cite (and no, I don't suggest to keep
svn-human-readable as name).

> ROADMAP:
> File not modified
> Properties haven't been modified
> Revision number: 43
> Working copy is up to date
> Last commited version: 41
> Commit author: hernan

And may I suggest another thing? The educational part. The output as
suggested is a bit sparse on clues which part of the usual svn status
translated into which human-readable part. E.g. which part telle me
that the properties haven't been modified? Something like

  $ svn st -v ROADMAP | svn-human-readable
   M 43 41 hernan ROADMAP
  ROADMAP:
       " " File not modified
       "M" Properties haven't been modified
      "43" Revision number
      "41" Last commited version
    hernan Commit author

This output is a bit crappy, but I hope you get the idea.

Regards,

        Benjamin.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 13 12:49:33 2004

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.