Modify ↓
Opened 16 years ago
#4810 new defect
AttributeError: 'TagChangeset' object has no attribute 'branchname'
Reported by: | 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)
Note: See
TracTickets for help on using
tickets.