#9485 closed defect (duplicate)
repository_sync_per_request seems to be ignored with multiple hg repositories
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | plugin/mercurial | Version: | 0.12 |
Severity: | normal | Keywords: | |
Cc: | leho@…, mmitar@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Attachments (0)
Change History (11)
comment:1 by , 14 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
follow-up: 3 comment:2 by , 14 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Would this cause TracSearch for changesets to come up empty since nothing is cached?
I have numerous mercurial repositories (no hooks) and when I look in the sqlite db I've got an empty revision table.
Is this by design? Should I add hooks to all 100+ repos? Should this be a new defect ticket? Any advice?
comment:3 by , 14 years ago
follow-up: 6 comment:4 by , 14 years ago
Yes, search functionality requires caching, so searching currently doesn't work with Mercurial. It's not by design, it's only because it hasn't been implemented yet for that backend.
Adding hooks for Mercurial repositories still makes sense if you have plugins that use the repository change listener functionality, like the TicketCommitUpdater
.
comment:5 by , 14 years ago
Cc: | added |
---|
comment:6 by , 14 years ago
Component: | plugin/mercurial → version control/changeset view |
---|---|
Milestone: | → 0.13 |
Owner: | set to |
Status: | reopened → new |
comment:7 by , 13 years ago
Cc: | added |
---|
follow-up: 10 comment:9 by , 9 years ago
Component: | version control/changeset view → plugin/mercurial |
---|---|
Milestone: | next-stable-1.0.x |
Resolution: | → duplicate |
Status: | new → closed |
comment:10 by , 9 years ago
comment:11 by , 8 years ago
Description: | modified (diff) |
---|
Yes, this is due to the fact that the Mercurial plugin doesn't cache the changeset metadata in the database, so the
sync()
operation is a no-op and any change to the repository is directly visible in Trac.We don't really want to advertise this, as it may change in a future version of the plugin. And actually, the same applies if you configure a Subversion repository with the type
direct-svnfs
, where no caching is done (but performance is bad).