You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniele Nicolodi <da...@grinta.net> on 2002/06/28 09:34:53 UTC

ViewSVN

I want to start to work on ViewSVN or something like to browse svn
repositorie trought web.  I want to implement svn log and svn info
at the moment.

What is the idea on developping that tool: parse svn command output
or write python equivalens for these command using library bindings ??

My design draft is to build a framework around one of those solution to
get XML output and a layer to apply an XSLT to this XML to get HTML.
In this way we have modularizzation and customizzation without a lot
of work. There is several solution to apply a XSLT to an XML server side.

Now i want start hacking svnlook.py to output XML to become confident
with python (i'm a perl guy non a python one) and with subversion library.
There is any documentation around for svn library and python bindings ??

Any comment on this project ??

Ciao
-- 
Daniele
		    --- http://www.grinta.net ---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: ViewSVN

Posted by Ben Collins-Sussman <su...@collab.net>.
Daniele Nicolodi <da...@grinta.net> writes:

> > I don't really see the advantage of having ViewSVN work on remote 
> > repositories.
> 
> It could be a sort of load balancing.
> 
> > If you really don't want ViewSVN on the same box as your main svn 
> > server, you need repository replication... ;)
> 
> This is a interesting features anyhow ...


ViewCVS works by directly parsing the RCS files in a CVS repository,
so the repository must be on the same machine as Apache.  We plan to
extend this system, by using python bindings to directly access a
subversion repository.

If you want to extend either ViewCVS or ViewSVN to access a repository
across a network, go for it.  But that's a huge can of worms IMO.
Zillions of people run ViewCVS and experience the "restriction" of the
repository having to be local; my impression is that nobody really
feels this is a problem, though.  It would be an interesting feature,
yes, but I don't think there's a pressing need.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: ViewSVN

Posted by Daniele Nicolodi <da...@grinta.net>.
On Sun, Jun 30, 2002 at 05:51:01PM +0200, Sander Striker wrote:

> > If so this mean that ViewSVN will work only if the subversion server is
> > running on the same machine of viewsvn. In my opinion this is a bad think.
> > What about build viewsvn around of libsvn_repo, that is network trasparent,
> 
> You mean libsvn_ra.  libsvn_repos is a this wrapper around libsvn_fs, and is
> therefor also only useful on the same box as the repository.

Yes. I have recognised my mistake 5 seconds after i have sent my mail ...

> > so we can run viewsvn on a remote repository ?? Whate are the limitations
> > on code over libsvn_repo instead of libsvn_fs ??
> 
> The downside of doing this through ra would be (IMHO):
>  - speed problems
>  - increased server load
>  - increased network traffic

I don't see these problems. Subversion uses libsvn_ra_local on local
repositories so if the repo is on the same mascine then if you want
to run viewsvn on the same box there only a une more lib layer between
viewsvn and repository, instead if i want to run viewsvn on another
maschine i simply can do it.

> I don't really see the advantage of having ViewSVN work on remote 
> repositories.

It could be a sort of load balancing.

> If you really don't want ViewSVN on the same box as your main svn 
> server, you need repository replication... ;)

This is a interesting features anyhow ...

Ciao
-- 
Daniele
		    --- http://www.grinta.net ---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

RE: ViewSVN

Posted by Sander Striker <st...@apache.org>.
> From: daniele@grinta.net [mailto:daniele@grinta.net]On Behalf Of Daniele
> Nicolodi
> Sent: 30 June 2002 17:30

> On Fri, Jun 28, 2002 at 10:53:40AM -0500, Ben Collins-Sussman wrote:
> > Daniele Nicolodi <da...@grinta.net> writes:
> > 
> > > I want to start to work on ViewSVN or something like to browse svn
> > > repositorie trought web.  I want to implement svn log and svn info
> > > at the moment.
> > > 
> > > What is the idea on developping that tool: parse svn command output
> > > or write python equivalens for these command using library bindings ??
> > 
> > The python bindings already exist for libsvn_fs, which is all we need.
> 
> libsvn_fs is only for acces repository on local filesystem or i'm wrong ??
> 
> If so this mean that ViewSVN will work only if the subversion server is
> running on the same machine of viewsvn. In my opinion this is a bad think.
> What about build viewsvn around of libsvn_repo, that is network trasparent,

You mean libsvn_ra.  libsvn_repos is a this wrapper around libsvn_fs, and is
therefor also only useful on the same box as the repository.

> so we can run viewsvn on a remote repository ?? Whate are the limitations
> on code over libsvn_repo instead of libsvn_fs ??

The downside of doing this through ra would be (IMHO):
 - speed problems
 - increased server load
 - increased network traffic

I don't really see the advantage of having ViewSVN work on remote repositories.
If you really don't want ViewSVN on the same box as your main svn server, you need
repository replication... ;)


Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: ViewSVN

Posted by Daniele Nicolodi <da...@grinta.grinta.net>.
On Fri, Jun 28, 2002 at 10:53:40AM -0500, Ben Collins-Sussman wrote:
> Daniele Nicolodi <da...@grinta.net> writes:
> 
> > I want to start to work on ViewSVN or something like to browse svn
> > repositorie trought web.  I want to implement svn log and svn info
> > at the moment.
> > 
> > What is the idea on developping that tool: parse svn command output
> > or write python equivalens for these command using library bindings ??
> 
> The python bindings already exist for libsvn_fs, which is all we need.

libsvn_fs is only for acces repository on local filesystem or i'm wrong ??

If so this mean that ViewSVN will work only if the subversion server is
running on the same machine of viewsvn. In my opinion this is a bad think.
What about build viewsvn around of libsvn_repo, that is network trasparent,
so we can run viewsvn on a remote repository ?? Whate are the limitations
on code over libsvn_repo instead of libsvn_fs ??

Ciao
-- 
Daniele
		    --- http://www.grinta.net ---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: ViewSVN

Posted by Ben Collins-Sussman <su...@collab.net>.
Daniele Nicolodi <da...@grinta.net> writes:

> I want to start to work on ViewSVN or something like to browse svn
> repositorie trought web.  I want to implement svn log and svn info
> at the moment.
> 
> What is the idea on developping that tool: parse svn command output
> or write python equivalens for these command using library bindings ??

The python bindings already exist for libsvn_fs, which is all we need.


> My design draft is to build a framework around one of those solution to
> get XML output and a layer to apply an XSLT to this XML to get HTML.
> In this way we have modularizzation and customizzation without a lot
> of work. There is several solution to apply a XSLT to an XML server side.

ViewCVS already has fancy templates like this;  read below...


> Now i want start hacking svnlook.py to output XML to become confident
> with python (i'm a perl guy non a python one) and with subversion library.
> There is any documentation around for svn library and python bindings ??
> 
> Any comment on this project ??

Yes... cmpilato and I (well, mostly cmpilato) are about to start
working on ViewSVN in a statistically significant way sometime next
month.  Greg Stein has already had discussions with us about how to
extend the ViewCVS codebase to work with svn (i.e. what parts of the
code can be shared, what parts can't.)  That's also one of the reasons
gstein has been working so hard on getting the SWIG python bindings
for libsvn_fs working.

We've already joined the ViewCVS project on sourceforge and checked
out the code to start looking at it.  You should do the same.  I
suspect that we should all coordinate our design efforts...  In short,
there's no need to reinvent wheels that already exist in ViewCVS.  Our
plan is to simply extend ViewCVS to read svn repositories as well.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org