Package: xxdiff-scripts
Version: 1:3.2-8
Severity: normal

When running xx-svn-diff on a tree that contains xml files, the files are skipped because they are classified as "non-text" by the istextfile function in utils.py in:

/usr/share/python-support/xxdiff-scripts/xxdiff

I think that adding another regular expression to match the output of "file" for XML files could be appropriate, e.g. in istextfile:

xml_re = re.compile('\\bXML\\b')

and then test for all 3 options:

return bool(text_re.search(stdout) or empty_re.match(stdout) or xml_re.search(stdout))

rgds
jp

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.27.15 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages xxdiff-scripts depends on:
ii python 2.5.2-3 An interactive high-level object-o ii python-support 0.8.7 automated rebuilding support for P ii xxdiff 1:3.2-8 graphical file/directory compariso

xxdiff-scripts recommends no packages.

xxdiff-scripts suggests no packages.

-- no debconf information

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to