Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

trac module for commiting code in subversion

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


frederiko at gmail

Sep 16, 2009, 11:00 AM

Post #1 of 8 (484 views)
Permalink
trac module for commiting code in subversion

Hello,

Simple and quick question: I was able to work with the trac's svn-
browser. I can check out the code, but can't commit code in, unless I
talk directly to svn server, bypassing trac (which I still believe is
the way to go). Is there any interface that would easy this situation?
Would I have to maintain different account for trac and subversion?
What's the recommended approach for this scenario?

Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


noah at coderanger

Sep 18, 2009, 1:50 AM

Post #2 of 8 (458 views)
Permalink
Re: trac module for commiting code in subversion [In reply to]

Trac is a read-only viewer, you cannot alter the repo in any way. If
you are using mod_dav_svn it is very easy to setup both Trac and SVN
to use the same authentication config (just copy over the Apache
config block). If you are using svnserve's password file, look at the
AccountManager plugin. If you are using svn+ssh there a backend for
accountmanager to use pwauth (http://code.google.com/p/pwauth/).

--Noah

On Sep 16, 2009, at 11:00 AM, Frederiko Costa wrote:

>
> Hello,
>
> Simple and quick question: I was able to work with the trac's svn-
> browser. I can check out the code, but can't commit code in, unless I
> talk directly to svn server, bypassing trac (which I still believe is
> the way to go). Is there any interface that would easy this situation?
> Would I have to maintain different account for trac and subversion?
> What's the recommended approach for this scenario?
>
> Thanks in advance.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


yoheeb at gmail

Sep 18, 2009, 7:55 AM

Post #3 of 8 (456 views)
Permalink
Re: trac module for commiting code in subversion [In reply to]

On Sep 18, 3:50 am, Noah Kantrowitz <n...@coderanger.net> wrote:
> Trac is a read-only viewer, you cannot alter the repo in any way. If  
> you are using mod_dav_svn it is very easy to setup both Trac and SVN  
> to use the same authentication config (just copy over the Apache  
> config block). If you are using svnserve's password file, look at the  
> AccountManager plugin. If you are using svn+ssh there a backend for  
> accountmanager to use pwauth (http://code.google.com/p/pwauth/).
>
> --Noah
>
> On Sep 16, 2009, at 11:00 AM, Frederiko Costa wrote:
>
>
>
> > Hello,
>
> > Simple and quick question: I was able to work with the trac's svn-
> > browser. I can check out the code, but can't commit code in, unless I
> > talk directly to svn server, bypassing trac (which I still believe is
> > the way to go). Is there any interface that would easy this situation?
> > Would I have to maintain different account for trac and subversion?
> > What's the recommended approach for this scenario?
>
> > Thanks in advance.

And make use of the trac-post-commit-hook.py or appropriate variant
for you application
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


debacle at debian

Sep 18, 2009, 8:40 AM

Post #4 of 8 (455 views)
Permalink
Re: trac module for commiting code in subversion [In reply to]

Quoting "Noah Kantrowitz" <noah [at] coderanger>:
> Trac is a read-only viewer, you cannot alter the repo in any way.

Btw, the idea of a plugin that allows SVN commits striked me more than
once. We use Trac both for software developers and for "less technical
staff". They have sometimes to get a document from SVN (which they can
do easily using the Trac web interface) as well as updating a file
(for which they have to use e.g. Tortoise SVN on Windows). I believe
an "SVN upload plugin" would be an interesting add-on for some users.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


mixedpuppy at gmail

Sep 18, 2009, 8:56 AM

Post #5 of 8 (454 views)
Permalink
Re: trac module for commiting code in subversion [In reply to]

On 09-09-18 8:40 AM, W. Martin Borgert wrote:
>
> Quoting "Noah Kantrowitz"<noah [at] coderanger>:
>> Trac is a read-only viewer, you cannot alter the repo in any way.
>
> Btw, the idea of a plugin that allows SVN commits striked me more than
> once. We use Trac both for software developers and for "less technical
> staff". They have sometimes to get a document from SVN (which they can
> do easily using the Trac web interface) as well as updating a file
> (for which they have to use e.g. Tortoise SVN on Windows). I believe
> an "SVN upload plugin" would be an interesting add-on for some users.

What's wrong with a webdav interface to the repository? End user mounts
the drive, and has transparent versioning for anything they save to it.

Shane

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


chris.heller.greysparling at gmail

Sep 24, 2009, 7:30 PM

Post #6 of 8 (408 views)
Permalink
Re: trac module for commiting code in subversion [In reply to]

You can access svn via file:/// URLs from within Trac. We do this for a
very limited set of scenarios where a commit is initiated from within Trac
(e.g. tagging releases - not a general svn client), but this bypasses
things like path based authentication (since you're not going through the
svn server code) so you have to take care to restrict the commits in your
logic (meaning don't let the user specify random paths from within Trac).

Trac does have a module for processing svnauthz files so even if you are
using path based authentication in Subversion, but not in Trac, you can
still determine whether a commit would be allowed by the Subversion server
code.

I think that this is the same thing that trac-hacks does to create a new
project/hack when you register one.

It's probably worth mentioning that this presumes that your Trac users match
exactly to your Subversion user names.

On Fri, Sep 18, 2009 at 8:56 AM, Shane Caraveo <mixedpuppy [at] gmail> wrote:

>
> On 09-09-18 8:40 AM, W. Martin Borgert wrote:
> >
> > Quoting "Noah Kantrowitz"<noah [at] coderanger>:
> >> Trac is a read-only viewer, you cannot alter the repo in any way.
> >
> > Btw, the idea of a plugin that allows SVN commits striked me more than
> > once. We use Trac both for software developers and for "less technical
> > staff". They have sometimes to get a document from SVN (which they can
> > do easily using the Trac web interface) as well as updating a file
> > (for which they have to use e.g. Tortoise SVN on Windows). I believe
> > an "SVN upload plugin" would be an interesting add-on for some users.
>
> What's wrong with a webdav interface to the repository? End user mounts
> the drive, and has transparent versioning for anything they save to it.
>
> Shane
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


ryano at physiosonics

Sep 25, 2009, 12:57 PM

Post #7 of 8 (398 views)
Permalink
Re: trac module for commiting code in subversion [In reply to]

On Sep 18, 8:56 am, Shane Caraveo <mixedpu...@gmail.com> wrote:
> What's wrong with a webdav interface to the repository?  End user mounts
> the drive, and has transparent versioning for anything they save to it.

To the best of my knowledge after many hours of effort and
research ... WebDAV is broken, but can be patched on Vista x32.
WebDAV is broken and there is no fix on Vista x64. WebDAV is
unreliable on OSX 10.5. I've found some decent third party clients
for OSX, but nothing I have been very happy with on Windows, thus far.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


oddsimons at gmail

Sep 25, 2009, 4:43 PM

Post #8 of 8 (395 views)
Permalink
Re: trac module for commiting code in subversion [In reply to]

On Sep 25, 9:57 pm, RJOllos <ry...@physiosonics.com> wrote:
> On Sep 18, 8:56 am, Shane Caraveo <mixedpu...@gmail.com> wrote:
>
> > What's wrong with a webdav interface to the repository?  End user mounts
> > the drive, and has transparent versioning for anything they save to it.
>
> To the best of my knowledge after many hours of effort and
> research ... WebDAV is broken, but can be patched on Vista x32.
> WebDAV is broken and there is no fix on Vista x64.  WebDAV is
> unreliable on OSX 10.5.  I've found some decent third party clients
> for OSX, but nothing I have been very happy with on Windows, thus far.

WebDAV for Subversion on linux/osx at least committs a lot of changes
- a single 'save' will create a new file, delete the old and then a
rename (making 3 changesets). Without a chance to even document what
the saving entails, the revision log gets close to unusable - also
seeing that the new file breaks the revision history of the old file
it replaces (added as a new file every time). One project manager with
an Office document and a life-log habit of continually hitting 'ctrl-
s' (as you never know when office will crash...) will make 100's of
changes in the repos during a morning editing session...

At least this was my experience back at svn 1.3/1.4 when I tested and
rejected the idea of using it. I don't think anything has changed
since, but haven't looked either.

:::simon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.