Modify

Opened 15 years ago

Closed 15 years ago

#3985 closed defect (fixed)

RevTree - IndexError: no such group

Reported by: William Atchison Owned by: Emmanuel Blot
Priority: normal Component: RevtreePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Most recent call last:

File "C:\Program Files\VisualSVN Server\Trac\python25\lib\site-packages\trac-0.11-py2.5.egg\trac\web\main.py", line 423, in _dispatch_request Code fragment:

try: if not env and env_error: raise HTTPInternalError(env_error) try: dispatcher = RequestDispatcher(env)

dispatcher.dispatch(req)

except RequestDone: pass resp = req._response or [] except HTTPException, e:

Local variables:

Name Value after [u' except RequestDone:', u' pass', u' resp = ... before [u' try:', u' if not env and env_error:', u' raise ... dispatcher <trac.web.main.RequestDispatcher object at 0x0294B1F0> e IndexError('no such group',) env <trac.env.Environment object at 0x027F3590> env_error None exc_info (<type 'exceptions.IndexError'>, IndexError('no such group',), <traceback ... filename 'C:
Program Files
VisualSVN ... frames [{'function': '_dispatch_request', 'lines_before': [u' try:', u' ... has_admin True line u' dispatcher.dispatch(req)' lineno 422 message u'IndexError: no such group' req <Request "GET u'/revtree'"> resp [] tb <traceback object at 0x02B6A210> tb_hide None traceback 'Traceback (most recent call last):\n File "C:
Program Files
VisualSVN ...

File "C:\Program Files\VisualSVN Server\Trac\python25\lib\site-packages\trac-0.11-py2.5.egg\trac\web\main.py", line 197, in dispatch Code fragment:

req.args.get('FORM_TOKEN') != req.form_token: raise HTTPBadRequest('Missing or invalid form token. ' 'Do you have cookies enabled?') # Process the request and render the template

resp = chosen_handler.process_request(req) if resp: if len(resp) == 2: # Clearsilver chrome.populate_hdf(req) template, content_type = \ self._post_process_request(req, *resp)

Local variables:

Name Value chosen_handler <revtree.web_ui.RevtreeModule object at 0x0294B570> chrome <trac.web.chrome.Chrome object at 0x028805B0> err (<type 'exceptions.IndexError'>, IndexError('no such group',), <traceback ... handler <revtree.web_ui.RevtreeModule object at 0x0294B570> req <Request "GET u'/revtree'"> self <trac.web.main.RequestDispatcher object at 0x0294B1F0>

File "build\bdist.win32\egg\revtree\web_ui.py", line 246, in process_request Local variables: Name Value req <Request "GET u'/revtree'"> self <revtree.web_ui.RevtreeModule object at 0x0294B570>

File "build\bdist.win32\egg\revtree\web_ui.py", line 316, in _process_revtree Local variables: Name Value data {'style': u'compact', 'limits': 'limperiod', 'author': 'batchiso', ... oldest 1 repos <revtree.model.Repository object at 0x02B05370> req <Request "GET u'/revtree'"> revstore <revtree.web_ui.RevtreeStore object at 0x02B055D0> self <revtree.web_ui.RevtreeModule object at 0x0294B570> timebase 1224890300 tracrepos <trac.versioncontrol.cache.CachedRepository object at 0x02B05090> youngest 5

File "build\bdist.win32\egg\revtree\model.py", line 435, in build Local variables: Name Value bcre <_sre.SRE_Pattern object at 0x028742A8> c <trac.versioncontrol.cache.CachedChangeset object at 0x02B05AD0> chgset <revtree.model.BranchChangeset object at 0x02B053F0> dtstart datetime.datetime(2008, 9, 23, 23, 18, 20, tzinfo=<FixedOffset "UTC" ... dtstop datetime.datetime(2008, 10, 24, 23, 18, 20, tzinfo=<FixedOffset "UTC" ... info {'kind': 'dir', 'base_rev': u'2', 'base_path': u'trunk', 'path': ... mo <_sre.SRE_Match object at 0x02B29DA0> rev 5 revmax 5 revmin 1 revrange (1, 5) self <revtree.model.Repository object at 0x02B05370> start 1222211900 stop 1224890300 timerange (1222211900, 1224890300) vc <trac.versioncontrol.cache.CachedChangeset object at 0x02B05690> vcchangesets <generator object at 0x02B01940> vcsort [(5, <trac.versioncontrol.cache.CachedChangeset object at 0x02B05690>), ...

File "build\bdist.win32\egg\revtree\model.py", line 164, in build Local variables: Name Value bcre <_sre.SRE_Pattern object at 0x028742A8> self <revtree.model.BranchChangeset object at 0x02B053F0>

File "build\bdist.win32\egg\revtree\model.py", line 133, in _find_simple_branch Local variables: Name Value base_path u'trunk' base_rev u'2' bcre <_sre.SRE_Pattern object at 0x028742A8> change 'copy' change_gen <generator object at 0x02B018C8> item (u'branches/TaxInformation', 'dir', 'copy', u'trunk', u'2') kind 'dir' path u'branches/TaxInformation' path_mo <_sre.SRE_Match object at 0x02B29BA8> self <revtree.model.BranchChangeset object at 0x02B053F0> src_mo <_sre.SRE_Match object at 0x029F63C8> File "C:\Program Files\VisualSVN Server\Trac\python25\lib\site-packages\trac-0.11-py2.5.egg\trac\web\main.py", line 423, in _dispatch_request

dispatcher.dispatch(req)

File "C:\Program Files\VisualSVN Server\Trac\python25\lib\site-packages\trac-0.11-py2.5.egg\trac\web\main.py", line 197, in dispatch

resp = chosen_handler.process_request(req)

File "build\bdist.win32\egg\revtree\web_ui.py", line 246, in process_requestFile "build\bdist.win32\egg\revtree\web_ui.py", line 316, in _process_revtreeFile "build\bdist.win32\egg\revtree\model.py", line 435, in buildFile "build\bdist.win32\egg\revtree\model.py", line 164, in buildFile "build\bdist.win32\egg\revtree\model.py", line 133, in _find_simple_branch

Attachments (0)

Change History (10)

comment:1 Changed 15 years ago by Emmanuel Blot

Gosh, please use verbatim block ({{{ }}}) to quote a Python traceback. The current trace is hardly readable. Thanks.

comment:2 Changed 15 years ago by William Atchison

Trying again.

Python Traceback

Traceback (most recent call last):
  File "C:\Program Files\VisualSVN Server\Trac\python25\lib\site-packages\trac-0.11-py2.5.egg\trac\web\main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "C:\Program Files\VisualSVN Server\Trac\python25\lib\site-packages\trac-0.11-py2.5.egg\trac\web\main.py", line 197, in dispatch
    resp = chosen_handler.process_request(req)
  File "build\bdist.win32\egg\revtree\web_ui.py", line 246, in process_request
    return self._process_revtree(req)
  File "build\bdist.win32\egg\revtree\web_ui.py", line 316, in _process_revtree
    repos.build(self.bcre, revstore.revrange, revstore.timerange)
  File "build\bdist.win32\egg\revtree\model.py", line 435, in build
    if chgset and chgset.build(bcre):
  File "build\bdist.win32\egg\revtree\model.py", line 164, in build
    if self._find_simple_branch(bcre):
  File "build\bdist.win32\egg\revtree\model.py", line 133, in _find_simple_branch
    self.prettyname = path_mo.group('branchname') or self.branchname
IndexError: no such group

comment:3 in reply to:  2 Changed 15 years ago by Emmanuel Blot

Replying to batchison:

Trying again.

self.prettyname = path_mo.group('branchname') or self.branchname

IndexError: no such group

It looks like the branch_re in trac.ini is for 0.5.x, whereas the plugin is 0.6.x.

0.6.x is in really early development stage, try to stick with 0.5.x or remove the branch_re setting from trac.ini, as I'm not sure I've updated the documentation yet.

comment:4 Changed 15 years ago by William Atchison

Where can I get a 0.5.x zip of RevTree?

I am new to SVN and Trac and still learning the processes.

I happen to see your plugin and thought it was great and fills a gap between SVN and ClearCase.

comment:5 in reply to:  4 ; Changed 15 years ago by Emmanuel Blot

Replying to batchison:

Where can I get a 0.5.x zip of RevTree?

See the RevtreePlugin/Changelog: the latest version before 0.6.0 is [4012]

Then, check out the RevtreePlugin @ this version

svn co -r 4012 http://trac-hacks.org/svn/revtreeplugin

comment:6 in reply to:  5 ; Changed 15 years ago by William Atchison

Replying to eblot:

Replying to batchison:

Where can I get a 0.5.x zip of RevTree?

See the RevtreePlugin/Changelog: the latest version before 0.6.0 is [4012]

Then, check out the RevtreePlugin @ this version

svn co -r 4012 http://trac-hacks.org/svn/revtreeplugin

Well, I have gotten 0.5.16 version and now when I click on the RevTree menu, the system wants to download the a file.
I have verified the settings as outlined in the plugin wiki, do you have any suggestions?

comment:7 in reply to:  6 ; Changed 15 years ago by Emmanuel Blot

Replying to batchison:

Well, I have gotten 0.5.16 version and now when I click on the RevTree menu, the system wants to download the a file.

Which browser are you using?

comment:8 in reply to:  7 ; Changed 15 years ago by William Atchison

Replying to eblot:

Replying to batchison:

Well, I have gotten 0.5.16 version and now when I click on the RevTree menu, the system wants to download the a file.

Which browser are you using?


I use IE 7, I Google Chrome appears to work great though.

comment:9 in reply to:  8 Changed 15 years ago by Emmanuel Blot

Replying to batchison:

I use IE 7

Wrong ;-) Re-read the documentation: RevtreePlugin#Supportedbrowsers

IE is not supported and will not. Reasons are:

  1. IE is a piece of ... and does not cope with XML standards, especially w/ SVG
  2. I won't mess up the plugin to support M$ errancies

Maybe IE 8 will be supported, as M$ announced that this version will eventually (better late than never) support official standard. Meanwhile, you'll have to use a working browser. Sorry.

comment:10 Changed 15 years ago by Emmanuel Blot

Resolution: fixed
Status: newclosed

(In [4697]) Fixes #3985. No more error when pretty branch name groups are not defined within the regular expression

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Emmanuel Blot.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.