Package: tailor
Version: 0.9.23-3
Severity: normal
Hi,
I tried to use Tailor (0.9.23-3) with Mercurial (0.9.1-1) and got
AttributeError at the call of mercurial.commands.find(cmd). It appears
that mercurial.commands does not have such function anymore, however
it contains function findcmd. After changing commands.find with
commands.findcmd, the problem seems gone. See patch in the attachment.
Here is traceback:
Traceback (most recent call last):
File "/var/lib/python-support/python2.4/vcpx/source.py", line 133, in
applyPendingChangesets
replay(c)
File "/var/lib/python-support/python2.4/vcpx/dualwd.py", line 107, in
replayChangeset
self.target.replayChangeset(changeset)
File "/var/lib/python-support/python2.4/vcpx/target.py", line 124, in
replayChangeset
self._tag(tag)
File "/var/lib/python-support/python2.4/vcpx/hg.py", line 262, in _tag
opts = self._defaultOpts('tag')
File "/var/lib/python-support/python2.4/vcpx/hg.py", line 289, in _defaultOpts
return dict([(f[1], f[2]) for f in commands.find(cmd)[1][1]])
AttributeError: 'module' object has no attribute 'find'
18:07:30 [C] Upstream change application failed
Traceback (most recent call last):
File "/usr/bin/tailor", line 33, in ?
main()
File "/var/lib/python-support/python2.4/vcpx/tailor.py", line 332, in main
tailorizer()
File "/var/lib/python-support/python2.4/vcpx/tailor.py", line 144, in __call__
self.update()
File "/var/lib/python-support/python2.4/vcpx/tailor.py", line 107, in update
last, conflicts = dwd.applyPendingChangesets(
File "/var/lib/python-support/python2.4/vcpx/dualwd.py", line 97, in
applyPendingChangesets
applied=applied)
File "/var/lib/python-support/python2.4/vcpx/source.py", line 133, in
applyPendingChangesets
replay(c)
File "/var/lib/python-support/python2.4/vcpx/dualwd.py", line 107, in
replayChangeset
self.target.replayChangeset(changeset)
File "/var/lib/python-support/python2.4/vcpx/target.py", line 124, in
replayChangeset
self._tag(tag)
File "/var/lib/python-support/python2.4/vcpx/hg.py", line 262, in _tag
opts = self._defaultOpts('tag')
File "/var/lib/python-support/python2.4/vcpx/hg.py", line 289, in _defaultOpts
return dict([(f[1], f[2]) for f in commands.find(cmd)[1][1]])
AttributeError: 'module' object has no attribute 'find'
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-k7
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Versions of packages tailor depends on:
ii python-support 0.3.8 automated rebuilding support for p
ii python2.4 2.4.3-7 An interactive high-level object-o
Versions of packages tailor recommends:
ii rsync 2.6.8-2 fast remote file copy program (lik
-- no debconf information
--- /usr/share/python-support/tailor/vcpx/hg.py.orig 2006-05-28 15:24:40.000000000 +0600
+++ /usr/share/python-support/tailor/vcpx/hg.py 2006-08-03 18:11:33.000000000 +0600
@@ -286,7 +286,7 @@
def _defaultOpts(self, cmd):
# Not sure this is public. commands.parse might be, but this
# is easier, and while dispatch is easiest, you lose ui.
- return dict([(f[1], f[2]) for f in commands.find(cmd)[1][1]])
+ return dict([(f[1], f[2]) for f in commands.findcmd(cmd)[1][1]])
def _removePathnames(self, names):
"""Remove a sequence of entries"""