perfarce bug w/ tip of hg-main

Steve Borho steve at
Thu Sep 9 00:00:22 CDT 2010

When filectx.cmp() was changed to take another fctx rather than a
string, it broke the perfarce extension:

** unknown exception encountered, details follow
** report bug details to
** or mercurial at
** Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)]
** Mercurial Distributed SCM (version 1.6.3+4-89e233678fd8)
** Extensions loaded: fixfrozenexts, rebase, purge, mq, mercurial_keyring, trans
plant, extdiff, eol, perfarce
Traceback (most recent call last):
  File "hg", line 36, in <module>
  File "mercurial\dispatch.pyo", line 16, in run
  File "mercurial\dispatch.pyo", line 36, in dispatch
  File "mercurial\dispatch.pyo", line 58, in _runcatch
  File "mercurial\dispatch.pyo", line 535, in _dispatch
  File "mercurial\dispatch.pyo", line 394, in runcommand
  File "mercurial\dispatch.pyo", line 586, in _runcommand
  File "mercurial\dispatch.pyo", line 540, in checkargs
  File "mercurial\dispatch.pyo", line 533, in <lambda>
  File "mercurial\util.pyo", line 426, in check
  File "mercurial\extensions.pyo", line 129, in wrap
  File "mercurial\util.pyo", line 426, in check
  File "hgext\perfarce.pyo", line 1091, in push
  File "hgext\perfarce.pyo", line 826, in pushcommon
  File "mercurial\context.pyo", line 360, in cmp
AttributeError: 'str' object has no attribute 'data'

Probably won't be the last.. but this deserves to be noted on the API
changes wiki.

Steve Borho

More information about the Mercurial-devel mailing list