changeset 2792:8ec1b1f0a5f7

mq: use more portable util.parse_patch_output instead of handrolled version.
author Brendan Cully <brendan@kublai.com>
date Sat, 05 Aug 2006 14:59:47 -0700
parents f4d916351366
children 1e8b8107a2c9
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Sat Aug 05 15:23:26 2006 -0700
+++ b/hgext/mq.py	Sat Aug 05 14:59:47 2006 -0700
@@ -284,11 +284,7 @@
             if self.ui.verbose:
                 self.ui.warn(l + "\n")
             if l[:14] == 'patching file ':
-                pf = os.path.normpath(l[14:])
-                # when patch finds a space in the file name, it puts
-                # single quotes around the filename.  strip them off
-                if pf[0] == "'" and pf[-1] == "'":
-                    pf = pf[1:-1]
+                pf = os.path.normpath(util.parse_patch_output(l))
                 if pf not in files:
                     files.append(pf)
                 printed_file = False