Issue 363: Problem with filename containing square brackets and hyphen
http://bitbucket.org/tortoisehg/stable/issue/363/problem-with-filename-containing-square-brackets-and
Yuki KODAMA / kuy on Sun, 12 Jul 2009 03:07:33 +0200:
Comment:
Is it only necessary to escape file path string?
With following patch, I was able to kill error traceback:
{{{
diff --git a/hggtk/changeset.py b/hggtk/changeset.py
--- a/hggtk/changeset.py
+++ b/hggtk/changeset.py
@@ -5,6 +5,7 @@
#
import os
+import re
import gtk
import gobject
import pango
@@ -201,7 +202,7 @@
_(' %s is larger than the specified max diff size') %
wfile]
else:
lines = []
- matcher = cmdutil.matchfiles(self.repo, [wfile])
+ matcher = cmdutil.matchfiles(self.repo, [re.escape(wfile)])
opts = mdiff.diffopts(git=True, nodates=True)
for s in patch.diff(self.repo, n1, n2, match=matcher, opts=opts):
lines.extend(s.splitlines())
}}}
--
This is an issue notification from bitbucket.org.
You are receiving this either because you are the
owner of the issue, or you are following the issue.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop