#111: Xml parse exception because of magic-looking string in patch name
--------------------+-------------------------------------------------------
 Reporter:  zooko   |       Owner:  lele      
     Type:  defect  |      Status:  new       
 Priority:  major   |   Milestone:  VersionOne
Component:  tailor  |     Version:  0.8       
 Keywords:          |  
--------------------+-------------------------------------------------------
 I'm using a truly ancient version of tailor, so this bug report might be
 useless for the current version, but I'm submitting it anyway in case it
 turns out that the same bug exists in the current version.  For reference,
 the most recent patch from lele that I have in my copy of tailor here is
 this one:

 Thu Aug  4 10:09:44 PDT 2005  [EMAIL PROTECTED]
   * Handle the case when there is no author name
   The author name may be missing from the set of information that the
   source backend collects from the upstream repository, and that, at
   least for Subversion, means that the commit was made by an anonymous
   user.


 Here's the bug.  Somebody committed a patch with this name "Use ${root} to
 find pyopts file.".  Now when I try to tailorize that darcs patch into
 Subversion, I get this exception:

 {{{
 [EMAIL PROTECTED]:/home/darcs/trunk-tailorizer$ tailor.py --dont-refill-
 changelogs --patch-name-format "%(revision)s [from darcs]" .
 There are no changes to revert!
 Finished reverting.

 Fail: Text.Regex.Posix.regcomp: error in pattern
 parseString(, <vcpx.darcs.DarcsXMLChangesHandler instance at 0x4044986c>)
 yielded the following error...
 Traceback (most recent call last):
   File "/usr/local/bin/tailor.py", line 36, in ?
     main()
   File "/usr/local/stow/tailor-old-zookopatched//lib/python2.4/site-
 packages/vcpx/tailor.py", line 654, in main
     options.concatenate_logs)
   File "/usr/local/stow/tailor-old-zookopatched//lib/python2.4/site-
 packages/vcpx/tailor.py", line 425, in update
     delayed_commit=single_commit)
   File "/usr/local/stow/tailor-old-zookopatched//lib/python2.4/site-
 packages/vcpx/dualwd.py", line 74, in applyUpstreamChangesets
     delayed_commit=delayed_commit)
   File "/usr/local/stow/tailor-old-zookopatched//lib/python2.4/site-
 packages/vcpx/source.py", line 90, in applyUpstreamChangesets
     res = self._applyChangeset(root, c, logger=logger)
   File "/usr/local/stow/tailor-old-zookopatched//lib/python2.4/site-
 packages/vcpx/darcs.py", line 238, in _applyChangeset
     last = changesets_from_darcschanges(c(output=True, patch=patchname))
   File "/usr/local/stow/tailor-old-zookopatched//lib/python2.4/site-
 packages/vcpx/darcs.py", line 144, in changesets_from_darcschanges
     raise le
 xml.sax._exceptions.SAXParseException: <unknown>:1:0: no element found
 }}}

 Hope this helps!

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