Modify

Opened 8 years ago

Last modified 8 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: Ryan J Ollos 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 Scharrer 8 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@… 7 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 8 years ago by Martin Scharrer

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

comment:1 Changed 8 years ago by Ryan J Ollos

Cc: ryano@… added; anonymous removed

comment:2 Changed 8 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; ryano@… removed

Changed 7 years ago by emilm@…

Attachment: enhancer.py.diff added

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Emmanuel Blot.

Add Comment


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

 
Note: See TracTickets for help on using tickets.