Modify ↓
#4215 closed defect (fixed)
Patch for mercurial plugin to work with most recent mercurial code
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | plugin - mercurial |
Component: | version control | Version: | 0.10.2 |
Severity: | major | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Mercurial plugin does not work with most recent code of mercurial (chgset:731e739b8659 at 2006-11-15 in crew). Thiis is because the function walkchangerevs is moved to cmdutil module from commands module. Here is a sample patch:
-
backend.py
30 30 from mercurial.repo import RepoError 31 31 from mercurial.node import hex, short, nullid 32 32 from mercurial.util import pathto 33 from mercurial.commands import walkchangerevs 33 try: 34 # for most recent version (chgset:731e739b8659 at 2006-11-15) 35 from mercurial.cmdutil import walkchangerevs 36 except ImportError: 37 # for older version 38 from mercurial.commands import walkchangerevs 34 39 has_mercurial = True 35 40 except ImportError: 36 41 has_mercurial = False
Attachments (0)
Change History (4)
comment:1 by , 18 years ago
Status: | new → assigned |
---|
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Patch applied for source:sandbox/mercurial-plugin (r4319) and source:sandbox/mercurial-plugin-0.11 (r4920).
comment:4 by , 13 years ago
Milestone: | → plugin - mercurial |
---|
Note:
See TracTickets
for help on using tickets.
Great, I'll apply the patch asap, thank you!