#71: Tailor fails on darcs->svn conversion: non-existing file cannot be removed
-----------------------+----------------------------------------------------
  Reporter:  eschnett  |       Owner:  lele      
      Type:  defect    |      Status:  new       
  Priority:  major     |   Milestone:  VersionOne
 Component:  tailor    |     Version:  0.9       
Resolution:            |    Keywords:            
-----------------------+----------------------------------------------------
Comment (by lele):

 Oh, this is another bug of darcs :-|

 {{{
 $ darcs changes --match "hash 20050606193150-891bb-
 dad36762ac41517fe0a9136ea14fff32b2930f0d.gz" --xml-output --summ
 <changelog>
 <patch author='Erik Schnetter &lt;[EMAIL PROTECTED]&gt;'
 date='20050606193150' local_date='Mon Jun  6 21:31:50 CEST 2005'
 inverted='False' hash='20050606193150-891bb-
 dad36762ac41517fe0a9136ea14fff32b2930f0d.gz'>
         <name>CarpetWeb: Update web pages</name>
         <comment>
 Update the web pages.
 Explain stable and development versions better.
 Update darcs binaries and documentation.</comment>
     <summary>
     <remove_file>
     Carpet/CarpetWeb/binaries/darcs-1.0.3-static-linux-i386.gz
     </remove_file>
     <remove_file>
     Carpet/CarpetWeb/doc/darcs-1.0.2.ps.gz
     </remove_file>
     <add_file>
     Carpet/CarpetWeb/doc/darcs-1.0.3.ps.gz
     </add_file>
     <modify_file>
     Carpet/CarpetWeb/get-carpet-darcs.html<removed_lines
 num='68'/><added_lines num='128'/>
     </modify_file>
     <modify_file>
     Carpet/CarpetWeb/index.html<removed_lines num='56'/><added_lines
 num='17'/>
     </modify_file>
     <modify_file>
     Carpet/CarpetWeb/olds.html<removed_lines num='1'/><added_lines
 num='22'/>
     </modify_file>
     <modify_file>
     Carpet/CarpetWeb/work-with-darcs.html<removed_lines
 num='4'/><added_lines num='4'/>
     </modify_file>
     </summary>
 </patch>
 </changelog>
 }}}

 Here effectively we can see that {{{
 Carpet/CarpetWeb/binaries/darcs-1.0.3-static-linux-i386.gz}}} is being
 removed, but inspecting the patch more closely one can see

 {{{
 $ zcat _darcs/patches/20050606193150-891bb-
 dad36762ac41517fe0a9136ea14fff32b2930f0d.gz | head -14
 [CarpetWeb: Update web pages
 Erik Schnetter <[EMAIL PROTECTED]>**20050606193150

  Update the web pages.
  Explain stable and development versions better.
  Update darcs binaries and documentation.
 ] {
 addfile ./Carpet/CarpetWeb/binaries/darcs-1.0.3-static-linux-i386.gz
 binary ./Carpet/CarpetWeb/binaries/darcs-1.0.3-static-linux-i386.gz
 oldhex
 *
 newhex
 *
 rmfile ./Carpet/CarpetWeb/binaries/darcs-1.0.3-static-linux-i386.gz
 }}}

 So a single patch adds an empty file and removes it immediately. The
 problem is not that, but rather the incomplete output of {{{darcs
 changes}}}!

 Now one may wonder if it's easier writing a parser of darcs patches, or
 rather learning Haskell and fixing darcs...

 I think this is http://bugs.darcs.net/issue185: more over, --xml-output
 ignores -v.

-- 
Ticket URL: <http://progetti.arstecnica.it/tailor/ticket/71#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