thg serve doesn't work if disk path has spaces
The "Web Server" command doesn't work with subrepos if the disk path contains spaces.
Here's a small test case. On Mac OS X, but of course the same bug happened from my Windows machine:
$ mkdir "Some Dir" $ cd "Some Dir" $ pwd /Users/benad/Documents/junk/thg_test/Some Dir $ hg init . $ hg init a $ hg init b $ cat > .hgsub a = a b = b $ hg add .hgsub $ hg ci -m "Adding hgsub" $ thg serve
At this point, clicking "Start doesn't work and you see this in the logs: % hg serve --port 8000 --debug --web-conf /var/folders/7r/wdrj1z_48xlglt006s7d5g300000gq/T/thg.CRwtHs/webconf_ZmSdMu [command returned code 255 Tue Aug 14 13:17:17 2012]
$ cat /var/folders/7r/wdrj1z_48xlglt006s7d5g300000gq/T/thg.CRwtHs/webconf_ZmSdMu [paths] Some Dir = /Users/benad/Documents/junk/thg_test/Some Dir Some Dir/a = /Users/benad/Documents/junk/thg_test/Some Dir/a Some Dir/b = /Users/benad/Documents/junk/thg_test/Some Dir/b
Running the command on the console shows the traceback clearly.