You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by john smallberries <ja...@yahoo.com> on 2001/10/16 03:45:22 UTC
parsing of svn CLI by other programs
First time poster, short timelurker.
I know the point of having a library and using
standard protocols is so anyone can easily interface
with the repository ...
.. but there will inenvitably be front ends that rely
on text I/O(I'm sure the emacs front end will) from
the standard svn CLI. Is there a proper place to
store the knowledge of what these messages look like
(comments, resource files)? do you just let the guy
who writes the parser deal with it or do you go out of
your way to format all messages in a parsable (BNF)
way?
I guess this isn't unique to svn, but most projects
I've seen are mature and have already stabilized their
CLI messages. The "svn for cvs users" document
mentioned this in passing, which is what made me bring
it up.
-jack
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: parsing of svn CLI by other programs
Posted by Ben Collins-Sussman <su...@collab.net>.
john smallberries <ja...@yahoo.com> writes:
> .. but there will inenvitably be front ends that rely
> on text I/O(I'm sure the emacs front end will) from
> the standard svn CLI. Is there a proper place to
> store the knowledge of what these messages look like
> (comments, resource files)? do you just let the guy
> who writes the parser deal with it or do you go out of
> your way to format all messages in a parsable (BNF)
> way?
If we're good, we'll eventually write a formal specification about
what the output formats look like. But the UI and outputs are still
changing and being refined, because we've not yet hit Alpha. I
wouldn't assume things are "safe" until we reach that point.
(On the other hand, right now our python regression tests are *very*
dependent on parsing CLI output. That fact alone keeps us from
changing the formats too much!)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: parsing of svn CLI by other programs
Posted by kf...@collab.net.
john smallberries <ja...@yahoo.com> writes:
> .. but there will inenvitably be front ends that rely
> on text I/O(I'm sure the emacs front end will) from
> the standard svn CLI. Is there a proper place to
> store the knowledge of what these messages look like
> (comments, resource files)? do you just let the guy
> who writes the parser deal with it or do you go out of
> your way to format all messages in a parsable (BNF)
> way?
We go out of our way to format all messages to be parseable, for just
this reason. But the "grammar" is not documented anywhere; it's still
under development, and anyway, it's pretty easy to figure out what you
can depend on just by looking. Trust me -- you won't have any
trouble.
I'm planning to write an Emacs Lisp client when I get a chance, but
would love for someone to beat me to it. :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org