[PATCH] Tests with spaces in paths

Mads Kiilerich mads at kiilerich.com
Tue Mar 23 19:51:30 CDT 2010


mads at kiilerich.com wrote, On 03/24/2010 01:48 AM:
> # HG changeset patch
> # User Mads Kiilerich<mads at kiilerich.com>
> # Date 1269391404 -3600
> # Branch stable
> # Node ID ea4b5ccfc558cb6bcacc7f5a08189ebc1a3f6dc6
> # Parent  129e96f7a87aecffecc0aca9d32f4a84b609aa51
> Tests with spaces in paths
>
> This allows most tests to succeed with
> ./run-tests.py --tmpdir='/tmp/hg  test'
> and introduces other tests for spaces and shell quoting
>    

This was meant for stable.

Note that for example ui.patch, ui.editor, the bisect command, ssh 
command and HGMERGE are command line fragments and must be properly quoted.

The commands used for extdiff and "new" merge-tool configuration are 
however "executables" and will be quoted automatically, so command line 
fragments can not be used there.

Is that intended? Should these (and similar) differences be fixed or 
documented?

(I'm looking at this as a followup to 
http://mercurial.selenic.com/bts/issue2076 and 
http://selenic.com/pipermail/mercurial-devel/2010-March/019506.html)

/Mads


More information about the Mercurial-devel mailing list