Modify

Opened 15 years ago

#4810 new defect

AttributeError: 'TagChangeset' object has no attribute 'branchname'

Reported by: ben.menchaca@… Owned by: Emmanuel Blot
Priority: normal Component: RevtreePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Got this using the following regular expression: branch_re = (?:(?P<branch>trunk|(?:branches)/(?P<branchname>(?:john|steve|bob|ron)/[/]+))|(?P<tag>tags/(?P<tagname>(?:releases|daily|john|steve)/[/]+)))(?:/(?P<path>.*))?$

Did I do the regex incorrectly? I am attempting to support a repository with following structure: trunk/ branches/

/user1

/branch1 /branch2

/user2

/branch3

tags/

/daily

/day1 /day2

/release

/release1 /release2

Is there a better way? I would like the tags to show up as release/release1, etc, and the branches to be user/branchname.

Attachments (0)

Change History (0)

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.