trac-users  

RE: [Trac] Trac says it can't find mercurial repo - but it's there?

Cooke, Mark
Mon, 08 Mar 2010 23:22:13 -0800

> 
> Plugin seems to be enabled; if I look in 
> Administration->plugins 
> (http://127.0.0.1:8000/trac/admin/general/plugin#no2) I see 
> properties set up (see below).
> 
> It also works if I make just one change: reverting value of 
> repo dir in trac.ini to my previous hg repo location.  That 
> would seem to suggest the plugin is working, but it's finding 
> something objectionable about the repo itself.
> 
> any further help appreciated...
> 
I assume this applies to hg as well as svn but am not 100%... Did you
resync your environment against the new repo?  I suspect not as it is
happy to go back to the old one.

Trac tracks info about the repo (svn has a unique ID for example) and
complains if the values do not match what it "remembers" they should be.
So, when you change the config you must then tell Trac that this is the
correct new repo:

> trac-admin path-to-env resync

...and it will read the new repo revisions etc.

~ mark c

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