# HG changeset patch # User Kyle Moffett # Date 1123190556 28800 # Node ID 16700cdd90556c2f2af01b90ac5a62787f4fa26e # Parent 0108c602feb9dacc00b66647b8871bd9ee991b92 Allow import from files with spaces Index: hg/mercurial/commands.py =================================================================== diff -r 0108c602feb9 -r 16700cdd9055 mercurial/commands.py --- a/mercurial/commands.py Thu Aug 04 13:21:27 2005 -0800 +++ b/mercurial/commands.py Thu Aug 04 13:22:36 2005 -0800 @@ -703,7 +703,7 @@ message = "%s\n" % '\n'.join(message) ui.debug('message:\n%s\n' % message) - f = os.popen("patch -p%d < %s" % (strip, pf)) + f = os.popen("patch -p%d < '%s'" % (strip, pf)) files = [] for l in f.read().splitlines(): l.rstrip('\r\n');