:Hg can't handle paths with spaces

Create issue
Issue #26 resolved
George Hilliard created an issue

When using the command

:Hg update -r somebranch

in a repository named /home/thirtythreeforty/With Space/repo, the following error is printed to the message list:

Error detected while processing function <SNR>53_Hg:
line 5:
E172: Only one file name allowed: cd! /home/thirtythreeforty/With Space/repo

cd is complaining that you cannot specify multiple directories to change to. The directory should be 'quoted' or escaped to allow spaces (and other special characters like quotes) in the path.

Comments (2)

  1. Log in to comment