Attachment 'traceback2.html'

Download

--> -->

mpatchError

patch cannot be decoded

If you want to report a bug, please save this page and attach it to your bug report.

Traceback

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

  1. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_standalone.Request object at 0x15ab210>)

    1. 1302 self.page.send_page()
    2. 1303 else:
    3. 1304 handler(self.page.page_name, self)
    4. 1305
    5. 1306 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function do_show at 0x108e140>
    • self = <MoinMoin.request.request_standalone.Request object at 0x15ab210>
    • self.page = <MoinMoin.Page.Page object at 0x15ab350>
    • self.page.page_name = u'TestSeite'
  2. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/action/__init__.py in do_show (pagename=u'TestSeite', request=<MoinMoin.request.request_standalone.Request object at 0x15ab210>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 255 count_hit=count_hit,
    2. 256 print_mode=print_mode,
    3. 257 content_only=content_only,
    4. 258 )
    5. 259
    • content_only = 0
  3. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x15ab310>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 992 media=media, pi_refresh=pi.get('refresh'),
    2. 993 allow_doubleclick=1, trail=trail,
    3. 994 html_head=html_head,
    4. 995 )
    5. 996
    • html_head = ''
  4. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/theme/__init__.py in send_title (self=<MoinMoin.theme.modern.Theme instance at 0x15a5488>, text=u'TestSeite', **keywords={'allow_doubleclick': 1, 'html_head': '', 'media': 'screen', 'page': <MoinMoin.Page.Page object at 0x15ab310>, 'pi_refresh': None, 'print_mode': 0, 'trail': []})

    1. 1767 output.append(self.editorheader(d))
    2. 1768 else:
    3. 1769 output.append(self.header(d))
    4. 1770
    5. 1771 # emit it
    • output = [u'\n<body lang="en" dir="ltr">\n']
    • output.append = <built-in method append of list object at 0x15845f0>
    • self = <MoinMoin.theme.modern.Theme instance at 0x15a5488>
    • self.header = <bound method Theme.header of <MoinMoin.theme.modern.Theme instance at 0x15a5488>>
    • d = {'available_actions': ['use self.request.availableActions(page)'], 'baseurl': '', 'home_page': None, 'last_edit_info': '', 'logo_string': u'<img src="/moin_static180/common/moinmoin.png" alt="MoinMoin Logo">', 'msg': [], 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object at 0x15ab310>, 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', ...}
  5. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/theme/modern.py in header (self=<MoinMoin.theme.modern.Theme instance at 0x15a5488>, d={'available_actions': ['use self.request.availableActions(page)'], 'baseurl': '', 'home_page': None, 'last_edit_info': '', 'logo_string': u'<img src="/moin_static180/common/moinmoin.png" alt="MoinMoin Logo">', 'msg': [], 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object at 0x15ab310>, 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', ...}, **kw={})

    1. 34 u'</div>',
    2. 35 self.trail(d),
    3. 36 self.navibar(d),
    4. 37 #u'<hr id="pageline">',
    5. 38 u'<div id="pageline"><hr style="display:none;"></div>',
    • self = <MoinMoin.theme.modern.Theme instance at 0x15a5488>
    • self.navibar = <bound method Theme.navibar of <MoinMoin.theme.modern.Theme instance at 0x15a5488>>
    • d = {'available_actions': ['use self.request.availableActions(page)'], 'baseurl': '', 'home_page': None, 'last_edit_info': '', 'logo_string': u'<img src="/moin_static180/common/moinmoin.png" alt="MoinMoin Logo">', 'msg': [], 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object at 0x15ab310>, 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', ...}
  6. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/theme/__init__.py in navibar (self=<MoinMoin.theme.modern.Theme instance at 0x15a5488>, d={'available_actions': ['use self.request.availableActions(page)'], 'baseurl': '', 'home_page': None, 'last_edit_info': '', 'logo_string': u'<img src="/moin_static180/common/moinmoin.png" alt="MoinMoin Logo">', 'msg': [], 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object at 0x15ab310>, 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', ...})

    1. 424 if request.cfg.navi_bar:
    2. 425 for text in request.cfg.navi_bar:
    3. 426 pagename, link = self.splitNavilink(text)
    4. 427 if pagename == current:
    5. 428 cls = 'wikilink current'
    • pagename undefined
    • link undefined
    • self = <MoinMoin.theme.modern.Theme instance at 0x15a5488>
    • self.splitNavilink = <bound method Theme.splitNavilink of <MoinMoin.theme.modern.Theme instance at 0x15a5488>>
    • text = u'RecentChanges'
  7. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/theme/__init__.py in splitNavilink (self=<MoinMoin.theme.modern.Theme instance at 0x15a5488>, text=u'RecentChanges', localize=1)

    1. 376 title = self.shortenPagename(title)
    2. 377
    3. 378 link = page.link_to(request, title)
    4. 379
    5. 380 return pagename, link
    • link undefined
    • page = <MoinMoin.Page.Page object at 0x15ab550>
    • page.link_to = <bound method Page.link_to of <MoinMoin.Page.Page object at 0x15ab550>>
    • request = <MoinMoin.request.request_standalone.Request object at 0x15ab210>
    • title = u'RecentChanges'
  8. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/Page.py in link_to (self=<MoinMoin.Page.Page object at 0x15ab550>, request=<MoinMoin.request.request_standalone.Request object at 0x15ab210>, text=u'RecentChanges', querystr=None, anchor=None, **kw={})

    1. 632
    2. 633 # Add css class for non existing page
    3. 634 if not self.exists():
    4. 635 kw['css_class'] = 'nonexistent'
    5. 636
    • self = <MoinMoin.Page.Page object at 0x15ab550>
    • self.exists = <bound method Page.exists of <MoinMoin.Page.Page object at 0x15ab550>>
  9. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/Page.py in exists (self=<MoinMoin.Page.Page object at 0x15ab550>, domain=None, includeDeleted=False)

    1. 492 @return: true if page exists otherwise false
    2. 493 """
    3. 494 if self._item is None or self._rev is None:
    4. 495 return False
    5. 496
    • self = <MoinMoin.Page.Page object at 0x15ab550>
    • self._item = <MoinMoin.storage.Item object at 0x15ab510>
    • builtin None = None
    • self._rev = None
  10. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/Page.py in get_item (self=<MoinMoin.Page.Page object at 0x15ab550>)

    1. 150 Get item method.
    2. 151 """
    3. 152 self.lazy_load()
    4. 153 return self.__item
    5. 154
    • self = <MoinMoin.Page.Page object at 0x15ab550>
    • self.lazy_load = <bound method Page.lazy_load of <MoinMoin.Page.Page object at 0x15ab550>>
  11. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/Page.py in lazy_load (self=<MoinMoin.Page.Page object at 0x15ab550>)

    1. 124 ###self.__item = self._items[self.page_name]
    2. 125 self.__item = self._backend.get_item(self.page_name)
    3. 126 self.__rev = self.__item.get_revision(self.rev)
    4. 127 self._body = None
    5. 128 self._meta = None
    • self = <MoinMoin.Page.Page object at 0x15ab550>
    • self.__rev undefined
    • self.__item undefined
    • self.rev = -1
  12. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/storage/__init__.py in get_revision (self=<MoinMoin.storage.Item object at 0x15ab510>, revno=-1)

    1. 406 Note: If you pass -1 as revno, this shall return the latest Revision of the Item.
    2. 407 """
    3. 408 return self._backend._get_revision(self, revno)
    4. 409
    5. 410 def list_revisions(self):
    • self = <MoinMoin.storage.Item object at 0x15ab510>
    • self._backend = <MoinMoin.storage.backends.hg.MercurialBackend object at 0x101c350>
    • self._backend._get_revision = <bound method MercurialBackend._get_revision of ...ackends.hg.MercurialBackend object at 0x101c350>>
    • revno = -1
  13. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/storage/backends/hg.py in _get_revision (self=<MoinMoin.storage.backends.hg.MercurialBackend object at 0x101c350>, item=<MoinMoin.storage.Item object at 0x15ab510>, revno=-1)

    1. 304 """Returns given Revision of an Item."""
    2. 305 ctx = self._repo[self._repo.changelog.tip()]
    3. 306 revs = self._list_revisions(item)
    4. 307 if revno == -1 and revs:
    5. 308 revno = max(revs)
    • revs undefined
    • self = <MoinMoin.storage.backends.hg.MercurialBackend object at 0x101c350>
    • self._list_revisions = <bound method MercurialBackend._list_revisions o...ackends.hg.MercurialBackend object at 0x101c350>>
    • item = <MoinMoin.storage.Item object at 0x15ab510>
  14. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/storage/backends/hg.py in _list_revisions (self=<MoinMoin.storage.backends.hg.MercurialBackend object at 0x101c350>, item=<MoinMoin.storage.Item object at 0x15ab510>)

    1. 371 else:
    2. 372 # # XXX: use mercurial.cmdutil.walkchangerevs
    3. 373 revs = filter(lambda r: item._id in self._repo[r].files(), iter(self._repo))
    4. 374 return range(len(revs))
    5. 375
    • revs undefined
    • builtin filter = <built-in function filter>
    • r undefined
    • item = <MoinMoin.storage.Item object at 0x15ab510>
    • item._id = '7d743e94099c57600f0fe8e6582defe6'
    • self = <MoinMoin.storage.backends.hg.MercurialBackend object at 0x101c350>
    • self._repo = <mercurial.localrepo.localrepository object at 0x101ce50>
    • builtin iter = <built-in function iter>
  15. /home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/storage/backends/hg.py in (r=923)

    1. 371 else:
    2. 372 # # XXX: use mercurial.cmdutil.walkchangerevs
    3. 373 revs = filter(lambda r: item._id in self._repo[r].files(), iter(self._repo))
    4. 374 return range(len(revs))
    5. 375
    • revs undefined
    • builtin filter = <built-in function filter>
    • r = 923
    • item = <MoinMoin.storage.Item object at 0x15ab510>
    • item._id = '7d743e94099c57600f0fe8e6582defe6'
    • self = <MoinMoin.storage.backends.hg.MercurialBackend object at 0x101c350>
    • self._repo = <mercurial.localrepo.localrepository object at 0x101ce50>
    • ].files undefined
    • builtin iter = <built-in function iter>
  16. /home/user/workspace/1.8-mercurialbackend-ppacana/mercurial/context.py in files (self=<changectx 9de019f61d85>)

    1. 86 def user(self): return self._changeset[1]
    2. 87 def date(self): return self._changeset[2]
    3. 88 def files(self): return self._changeset[3]
    4. 89 def description(self): return self._changeset[4]
    5. 90 def branch(self): return self._changeset[5].get("branch")
    • files undefined
    • self = <changectx 9de019f61d85>
    • self._changeset = ('\xd6cj\xe3\xdbY/u\x0b\xe0\x11ZDYa\r\xb9kU^', 'Reimar Bauer <rb.proj AT googlemail DOT com>', (1218572295.0, -7200), ['4ce9c675bbb7d0204339b74863422ed6'], '', {'__timestamp': 'L1216556892L\n.', 'branch': 'default', 'moin_#': "(S'Please edit system and help pages ONLY in the...ionPage'\nS'master-date:2007-09-18 14:29:36'\ntp1\n.", 'moin_acl': "S'-All:write Default'\np1\n.", 'moin_edit_log_action': "S'SAVE'\np1\n.", 'moin_edit_log_addr': "S'0.0.0.0'\np1\n.", 'moin_edit_log_comment': "S''\n.", 'moin_edit_log_extra': "S''\n.", 'moin_edit_log_hostname': "S'0.0.0.0'\np1\n.", 'moin_edit_log_userid': "S''\n.", ...})
  17. /home/user/workspace/1.8-mercurialbackend-ppacana/mercurial/context.py in __getattr__ (self=<changectx 9de019f61d85>, name='_changeset')

    1. 50 def __getattr__(self, name):
    2. 51 if name == '_changeset':
    3. 52 self._changeset = self._repo.changelog.read(self.node())
    4. 53 return self._changeset
    5. 54 elif name == '_manifest':
    • self = <changectx 9de019f61d85>
    • self._changeset = ('\xd6cj\xe3\xdbY/u\x0b\xe0\x11ZDYa\r\xb9kU^', 'Reimar Bauer <rb.proj AT googlemail DOT com>', (1218572295.0, -7200), ['4ce9c675bbb7d0204339b74863422ed6'], '', {'__timestamp': 'L1216556892L\n.', 'branch': 'default', 'moin_#': "(S'Please edit system and help pages ONLY in the...ionPage'\nS'master-date:2007-09-18 14:29:36'\ntp1\n.", 'moin_acl': "S'-All:write Default'\np1\n.", 'moin_edit_log_action': "S'SAVE'\np1\n.", 'moin_edit_log_addr': "S'0.0.0.0'\np1\n.", 'moin_edit_log_comment': "S''\n.", 'moin_edit_log_extra': "S''\n.", 'moin_edit_log_hostname': "S'0.0.0.0'\np1\n.", 'moin_edit_log_userid': "S''\n.", ...})
    • self._repo = <mercurial.localrepo.localrepository object at 0x101ce50>
    • self._repo.changelog = <mercurial.changelog.changelog object at 0x1150290>
    • self._repo.changelog.read = <bound method changelog.read of <mercurial.changelog.changelog object at 0x1150290>>
    • self.node = <bound method changectx.node of <changectx 9de019f61d85>>
  18. /home/user/workspace/1.8-mercurialbackend-ppacana/mercurial/changelog.py in read (self=<mercurial.changelog.changelog object at 0x1150290>, node='\x9d\xe0\x19\xf6\x1d\x85\x06\xfa:Q\xea\xc8\x1f \xe2\xee5%\x88\xa7')

    1. 147 changelog v0 doesn't use extra
    2. 148 """
    3. 149 text = self.revision(node)
    4. 150 if not text:
    5. 151 return (nullid, "", (0, 0), [], "", {'branch': 'default'})
    • text undefined
    • self = <mercurial.changelog.changelog object at 0x1150290>
    • self.revision = <bound method changelog.revision of <mercurial.changelog.changelog object at 0x1150290>>
    • node = '\x9d\xe0\x19\xf6\x1d\x85\x06\xfa:Q\xea\xc8\x1f \xe2\xee5%\x88\xa7'
  19. /home/user/workspace/1.8-mercurialbackend-ppacana/mercurial/revlog.py in revision (self=<mercurial.changelog.changelog object at 0x1150290>, node='\x9d\xe0\x19\xf6\x1d\x85\x06\xfa:Q\xea\xc8\x1f \xe2\xee5%\x88\xa7')

    1. 954
    2. 955 bins = [self.chunk(r, df) for r in xrange(base + 1, rev + 1)]
    3. 956 text = mdiff.patches(text, bins)
    4. 957 p1, p2 = self.parents(node)
    5. 958 if node != hash(text, p1, p2):
    • text = "da06dd0040baea78563dfabbd0ca022405e6275c\nReimar ...e:S'it'\\np1\\n.\n99b1fbffa808f802dd2588104549ea1f\n\n"
    • global mdiff = <module 'mercurial.mdiff' from '/home/user/worksp....8-mercurialbackend-ppacana/mercurial/mdiff.pyc'>
    • mdiff.patches = <built-in function patches>
    • bins = ["65f71d8e993c38b2a7db61bc87f3121098b2d61c\nReimar ...e:S'en'\\np1\\n.\n34a0539f32453b023b7c3ee7950969b5\n\n"]

mpatchError

patch cannot be decoded

  • args = ('patch cannot be decoded',)
  • message = 'patch cannot be decoded'

System Details

  • Date: Tue, 12 Aug 2008 20:47:15 +0000
  • Platform: Linux linux 2.6.24-19-generic #1 SMP Fri Jul 11 21:01:46 UTC 2008 x86_64
  • Python: Python 2.5.2 (/usr/bin/python)
  • MoinMoin: Release 1.8.0 (alpha)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2008-08-18 18:44:20, 5.5 KB) [[attachment:FrontPage.html]]
  • [get | view] (2008-08-12 20:50:16, 30.8 KB) [[attachment:traceback2.html]]
  • [get | view] (2008-08-12 21:26:21, 36.6 KB) [[attachment:traceback3.html]]
  • [get | view] (2008-08-12 21:39:51, 21.3 KB) [[attachment:traceback4.html]]
  • [get | view] (2008-08-12 22:09:20, 27.6 KB) [[attachment:traceback5.html]]
  • [get | view] (2008-08-17 20:18:45, 32.1 KB) [[attachment:traceback6.html]]
  • [get | view] (2008-08-17 20:27:15, 7.8 KB) [[attachment:traceback7.html]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.