Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.1, 0.8.2, and 0.8.3

changeset: use cmdutil.matchfiles to avoid unnecessary checks

Fixes #282

The traceback in #282 looks to have been caused by case folding issues.
Using match.exact() should avoid those problems.

Changeset 4851646c3ef8

Parent 972f0ec2f662

by Steve Borho

Changes to one file · Browse files at 4851646c3ef8 Showing diff from parent 972f0ec2f662 Diff from another changeset...

 
201
202
203
204
 
205
206
207
 
201
202
203
 
204
205
206
207
@@ -201,7 +201,7 @@
  _(' %s is larger than the specified max diff size') % wfile]   else:   lines = [] - matcher = cmdutil.match(self.repo, [wfile]) + matcher = cmdutil.matchfiles(self.repo, [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())