Edgewall Software
Modify

#13887 assigned defect

Mercurial 7.2: TypeError: repository() missing 1 required positional argument: 'uiorrepo'

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: plugin - mercurial
Component: plugin/mercurial Version: 1.6
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

MercurialPlugin doesn't work with Mercurial 7.2 (released on 2026-01-29).

23:38:13 Trac[env] ERROR: Component <Component trac.versioncontrol.web_ui.browser.BrowserModule> failed with
Traceback (most recent call last):
  File "/dev/shm/py310/lib/python3.10/site-packages/trac/web/main.py", line 609, in dispatch_request
    dispatcher.dispatch(req)
  File "/dev/shm/py310/lib/python3.10/site-packages/trac/web/main.py", line 301, in dispatch
    raise e
  File "/dev/shm/py310/lib/python3.10/site-packages/trac/web/main.py", line 247, in dispatch
    resp = chosen_handler.process_request(req)
  File "/dev/shm/py310/lib/python3.10/site-packages/trac/web/chrome.py", line 731, in process_request
    raise HTTPNotFound('File %s not found', filename)
abc.HTTPNotFound: 404 Not Found (File your_project_logo.png not found)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/dev/shm/py310/lib/python3.10/site-packages/trac/env.py", line 382, in component_guard
    yield
  File "/dev/shm/py310/lib/python3.10/site-packages/trac/web/chrome.py", line 399, in component_guard
    yield
  File "/dev/shm/py310/lib/python3.10/site-packages/trac/web/chrome.py", line 908, in get_navigation_items
    for category, name, text in \
  File "/dev/shm/py310/lib/python3.10/site-packages/trac/versioncontrol/web_ui/browser.py", line 297, in get_navigation_items
    in rm.get_real_repositories()):
  File "/dev/shm/py310/lib/python3.10/site-packages/trac/versioncontrol/api.py", line 669, in get_real_repositories
    repos = self.get_repository(reponame)
  File "/dev/shm/py310/lib/python3.10/site-packages/trac/versioncontrol/api.py", line 604, in get_repository
    repos = connector.get_repository(rtype, rdir,
  File "/home/jun66j5/src/mercurial-plugin/tracext/hg/backend.py", line 513, in get_repository
    repos = MercurialRepository(dir, params, self.log, self)
  File "/home/jun66j5/src/mercurial-plugin/tracext/hg/backend.py", line 636, in __init__
    self.repo = hg.repository(ui=self.ui, path=str_path)
TypeError: repository() missing 1 required positional argument: 'uiorrepo'

32 failures in unit tests.

======================================================================
ERROR: test_duplicate_repo (tracext.hg.tests.backend.SanityCheckingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jun66j5/src/mercurial-plugin/tracext/hg/tests/backend.py", line 173, in test_duplicate_repo
    self.assertIsNotNone(self._repomgr.get_repository('hgrepos.1'))
  File "/home/jun66j5/src/mercurial-plugin/.tox/py310-trac16-hg72/lib/python3.10/site-packages/trac/versioncontrol/api.py", line 604, in get_repository
    repos = connector.get_repository(rtype, rdir,
  File "/home/jun66j5/src/mercurial-plugin/tracext/hg/backend.py", line 513, in get_repository
    repos = MercurialRepository(dir, params, self.log, self)
  File "/home/jun66j5/src/mercurial-plugin/tracext/hg/backend.py", line 636, in __init__
    self.repo = hg.repository(ui=self.ui, path=str_path)
TypeError: repository() missing 1 required positional argument: 'uiorrepo'

...
----------------------------------------------------------------------
Ran 18 tests in 0.351s

FAILED (errors=32)

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Jun Omae.
The ticket will be disowned. Next status will be 'new'.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.