hgext/hgk.py
changeset 6601 cab3ad865444
parent 6599 cd4db3999ef9
child 6602 a57a27b12965
--- a/hgext/hgk.py	Mon May 12 11:37:08 2008 -0500
+++ b/hgext/hgk.py	Mon May 12 11:37:08 2008 -0500
@@ -93,8 +93,8 @@
         if opts['patch']:
             if opts['pretty']:
                 catcommit(ui, repo, node2, "")
-            patch.diff(repo, node1, node2,
-                       files=files,
+            m = cmdutil.matchfiles(repo, files)
+            patch.diff(repo, node1, node2, files=m.files(), match=m,
                        opts=patch.diffopts(ui, {'git': True}))
         else:
             __difftree(repo, node1, node2, files=files)