Modify

Opened 5 years ago

Last modified 5 years ago

#4765 new defect

MergeInfoEnhancer does not do anything if Trac is configured to handle only subdirectory of a repository

Reported by: martin_s Owned by: eblot
Priority: normal Component: RevtreePlugin
Severity: normal Keywords:
Cc: rjollos 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)

revtreemergeinfoenhancer_reposparent.patch (623 bytes) - added by martin_s 5 years ago.
Prof-of-concept Patch for MergeInfoEnhancer to remove repository 'parent dir' from svn:merge-info properties.
enhancer.py.diff (933 bytes) - added by emilm@… 4 years ago.
patch that does not depend on some defined prefix but insted matches the branch by suffix (aka endswith)

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by martin_s

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

comment:1 Changed 5 years ago by rjollos

  • Cc ryano@… added

comment:2 Changed 5 years ago by rjollos

  • Cc rjollos added; ryano@… removed

Changed 4 years ago by emilm@…

patch that does not depend on some defined prefix but insted matches the branch by suffix (aka endswith)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.