Óscar Fuentes wrote:
> Theoretically trac 0.11 supports relative paths for repository_dir.
>
>   

Yes.

> I change trac.ini, execute a resync and all seems okay. Copied both trac
> and svn directories maintaining the relative directory structure to
> other machine and after starting trac it complains with a message on all
> pages saying:
>
> Warning: Can't synchronize with the repository (The 'repository_dir' has
> changed, a 'trac-admin resync' operation is needed.). Look in the Trac
> log for more information.
>
> so I look into the database and it contains an absolute directory. It
> seems that trac admits the relative dir from trac.ini but converts to
> absolute before storing it into the database.
>
> Is this intended?
>   

Not really, this is just an oversight I think. A more reliable way to 
detect if the repository has really changed is to check the svn uuid of 
the repository, which is also stored and used for the comparison. Even 
that is not a 100% guarantee, as you can always change the uuid with 
svnadmin setuuid ... Conversely you can recreate the exact same 
repository with a different uuid, as it's likely to happen with svnsync).
So in the end this check is just a very basic guarantee, and if anything 
fishy like the above happens, the Trac admin and the svn admin has 
better to be the same person ;-) Then, knowing what you're doing, you 
can use a SQL update to fix the repository_dir information in the system 
table, and this will avoid the need of a full resync...

> using trac 0.11.1 on both machines (linux and windows).
>
> I pretend to carry a copy of trac+svn with me on my windows laptop,
> copied from the linux server. Having to trac-admin resync the trac
> database on the laptop is quite expensive, plus it blocks the
> possibility of copy back the changes on the laptop to the linux server.
>
>   

You might be interested reading and contribute ideas to the 
http://trac.edgewall.org/wiki/DistributedTrac page.

-- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to