Ticket #172 (new defect)

Opened 3 years ago

Last modified 3 years ago

Does not work with mercurial 1.1

Reported by: lele Owned by: lele
Priority: minor Milestone: VersionOne
Component: hg Version: 0.9
Keywords: Cc:

Description

As reported on IRC, hg 1.1 changed the way commands are exposed, again...

With current tailor you get this traceback:

19:53:30 [C] Cannot prepare working directory!                     
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/vcpx/tailor.py", line 71, in bootstrap
    dwd.prepareWorkingDirectory(self.source)
  File "/var/lib/python-support/python2.5/vcpx/target.py", line 566, in prepareWorkingDirectory
    self._prepareWorkingDirectory(source_repo)
  File "/var/lib/python-support/python2.5/vcpx/repository/hg.py", line 467, in _prepareWorkingDirectory
    message = 'Tailor preparing to convert repo by adding .hgignore')
  File "/var/lib/python-support/python2.5/vcpx/repository/hg.py", line 364, in _hgCommand
    allopts = self._defaultOpts(cmd)
  File "/var/lib/python-support/python2.5/vcpx/repository/hg.py", line 359, in _defaultOpts
    return dict([(f[1].replace('-', '_'), f[2]) for f in findcmd(cmd)[1][1]])
  File "/var/lib/python-support/python2.5/vcpx/repository/hg.py", line 348, in findcmd
    return cmdutil.findcmd(self._getUI(), cmd, commands.table)
  File "/var/lib/python-support/python2.5/mercurial/cmdutil.py", line 52, in findcmd
    choice = findpossible(cmd, table, strict)
  File "/var/lib/python-support/python2.5/mercurial/cmdutil.py", line 29, in findpossible
    for e in table.keys():
AttributeError: 'str' object has no attribute 'keys'

Change History

comment:1 Changed 3 years ago by lele

This is partially fixed by [1660]. More work is needed, to integrate  this patch in a backward compatible way.

Note: See TracTickets for help on using tickets.