Opened 17 years ago
Last modified 6 years ago
#4765 new defect
MergeInfoEnhancer does not do anything if Trac is configured to handle only subdirectory of a repository
| Reported by: | Martin Scharrer | Owned by: | Emmanuel Blot |
|---|---|---|---|
| Priority: | normal | Component: | RevtreePlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
I configured my Trac to use only a subdirectory of a repository, e.g.
repository_dir = /path/to/repos/subdir/in/repos/
were /path/to/repos is the real subversion repository path and /subdir/in/repos is a directory inside the repository which has its own trunk, branches and tags directories.
The RevtreePlugin itself works quite well with this configuration, but MergeInfoEnhancer does not get that the svn:merge-info properties all start with /subdir/in/repos. This part must be removed before the info is processed.
I attached a prof-of-concept patch where this part (called reposparent) was hardcoded for my needs. Should be simple to read it from the Trac svn API but I didn't know were to look. If not it could be a simple config entry.
Attachments (2)
Change History (5)
Changed 17 years ago by
| Attachment: | revtreemergeinfoenhancer_reposparent.patch added |
|---|
comment:1 Changed 17 years ago by
| Cc: | ryano@… added; anonymous removed |
|---|
comment:2 Changed 16 years ago by
| Cc: | Ryan J Ollos added; ryano@… removed |
|---|
Changed 15 years ago by
| Attachment: | enhancer.py.diff added |
|---|
patch that does not depend on some defined prefix but insted matches the branch by suffix (aka endswith)
comment:3 Changed 6 years ago by
| Cc: | Ryan J Ollos removed |
|---|



Prof-of-concept Patch for MergeInfoEnhancer to remove repository 'parent dir' from svn:merge-info properties.