#86: tailor gives an error with new hg-0.9.2
----------------------------+-----------------------------------------------
  Reporter:  ThurnerRupert  |       Owner:  lele      
      Type:  defect         |      Status:  new       
  Priority:  major          |   Milestone:  VersionOne
 Component:  hg             |     Version:  0.9       
Resolution:                 |    Keywords:            
----------------------------+-----------------------------------------------
Changes (by lele):

  * component:  tailor => hg

Comment:

 The following patch, contributed by [EMAIL PROTECTED], fixes this
 problem. OTOH, it breaks compatibility with older versions of HG.

 I didn't had time to discover a way to handle the difference, probably the
 only way is relaying on the version info.

 {{{
 $ diff -c vcpx/repository/hg.py /tmp/tailor-0.9.26/vcpx/repository/hg.py
 *** vcpx/repository/hg.py       Wed Aug 16 18:32:03 2006
 --- /tmp/tailor-0.9.26/vcpx/repository/hg.py    Tue Dec  5 10:08:30 2006
 ***************
 *** 309,315 ****
              findcmd = commands.findcmd
          else:
              findcmd = commands.find
 !         return dict([(f[1].replace('-', '_'), f[2]) for f in
 findcmd(cmd)[1][1]])

      def _hgCommand(self, cmd, *args, **opts):
          import os
 --- 309,315 ----
              findcmd = commands.findcmd
          else:
              findcmd = commands.find
 !         return dict([(f[1].replace('-', '_'), f[2]) for f in
 findcmd(self._getUI(),cmd)[1][1]])

      def _hgCommand(self, cmd, *args, **opts):
          import os
 }}}

-- 
Ticket URL: <http://progetti.arstecnica.it/tailor/ticket/86#comment:1>
Tailor <http://progetti.arstecnica.it/tailor>
An inter-VCs changeset exchanger
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor

Reply via email to