Sumith wrote:
> Dear Christian,
>
> Thanks for all supportive communication on this issue so far.
>
> On May 30, 5:52 pm, Christian Boos <[EMAIL PROTECTED]> wrote:
>
>>> This suggestion too did not works it said "direct-svnfs" is not
>>> supported.
>>>
>> Strange, it worked for me ;-)
>>
>
> It seems we are not referring to the same code line. I am using Trac
> 0.10.3 release for Windows. I guess it is
> http://trac.edgewall.org/browser/tags/trac-0.10.3
> (I am not sure).
>
> D:\Python24\Scripts>trac-admin.py --version
> Trac Admin Console 0.10.3
>
> I would like to try with the same code-line you use in my experiment.
> So I will have less trouble in fixing the issues.
>
> Are you using http://trac.edgewall.org/browser/branches/0.10-stable or
> something else?
>
>
>> Index: trac/versioncontrol/api.py
>> ===================================================================
>> --- trac/versioncontrol/api.py (revision 5545)
>> +++ trac/versioncontrol/api.py (working copy)
>> @@ -409,6 +409,7 @@
>>
>> Warning: API will be improved (see #1601 and #2545).
>> """
>> + return []
>>
>> def get_changes(self):
>> """Generator that produces a tuple for every change in the
>> changeset
>>
>>
>
> I was bit confused how to apply this patch in my code revision. It
> seems you have added blank return statement to the get_property()
> function. I did the same in my code, but still no luck.
>
Not just "return", but "return []" ;-)
Well, for improved clarity, I updated the original patch to contain both
changes, made on latest of 0.10-stable.
But that patch will also work on a clean 0.10.3 checkout, as you can see
in the following:
$ patch -p0 < ../../branches/0.10-stable/direct-svnfs-0.10.5dev.diff
(Stripping trailing CRs from patch.)
patching file trac/versioncontrol/api.py
Hunk #1 succeeded at 386 (offset -23 lines).
(Stripping trailing CRs from patch.)
patching file trac/versioncontrol/svn_fs.py
Hunk #1 succeeded at 247 (offset 25 lines).
Hunk #2 succeeded at 258 (offset 25 lines).
I verified this patched 0.10.3 Trac, using the following settings:
[trac]
...
#repository_dir = C:/Workspace/local/svn/empty
#repository_dir = C:/Workspace/local/svn/trac-svnrepos
#repository_dir = C:/Workspace/local/svn/trac-svnrepos/trunk/src-copy
repository_dir = C:/Workspace/local/svn/trac-vc
#repository_type = svn
repository_type = direct-svnfs
and switching back and forth between the different repository_dir
entries while the server was running worked fine, as expected.
But be aware that 0.10.3 is not the latest "stable" version and you
should be using at least 0.10.4, if not 0.10.5dev.
-- Christian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Index: trac/versioncontrol/api.py
===================================================================
--- trac/versioncontrol/api.py (revision 5545)
+++ trac/versioncontrol/api.py (working copy)
@@ -409,6 +409,7 @@
Warning: API will be improved (see #1601 and #2545).
"""
+ return []
def get_changes(self):
"""Generator that produces a tuple for every change in the changeset
Index: trac/versioncontrol/svn_fs.py
===================================================================
--- trac/versioncontrol/svn_fs.py (revision 5545)
+++ trac/versioncontrol/svn_fs.py (working copy)
@@ -222,6 +222,7 @@
def get_supported_types(self):
global has_subversion
if has_subversion:
+ yield ("direct-svnfs", 4)
yield ("svnfs", 4)
yield ("svn", 2)
@@ -232,7 +233,11 @@
unless `direct-svn-fs` is the specified type.
"""
repos = SubversionRepository(dir, None, self.log)
- crepos = CachedRepository(self.env.get_db_cnx(), repos, None, self.log)
+ if type == 'direct-svnfs':
+ crepos = repos # "crepos" stands now for "chosen repos" ;-)
+ else:
+ crepos = CachedRepository(self.env.get_db_cnx(), repos, None,
+ self.log)
if authname:
authz = SubversionAuthorizer(self.env, crepos, authname)
repos.authz = crepos.authz = authz