Modify

Opened 16 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 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)

revtreemergeinfoenhancer_reposparent.patch (623 bytes) - added by Martin Scharrer 16 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@… 14 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 (5)

Changed 16 years ago by Martin Scharrer

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

comment:1 Changed 16 years ago by Ryan J Ollos

Cc: ryano@… added; anonymous removed

comment:2 Changed 15 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; ryano@… removed

Changed 14 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)

comment:3 Changed 5 years ago by Ryan J Ollos

Cc: Ryan J Ollos removed

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.