Mercurial > hg > mercurial-crew-with-dirclash
view contrib/tcsh_completion @ 5081:167c422c745f
httprepo: quote the path part of the URL
This should fix a 'hg clone "http://hg.example.org/path with spaces/"'
The code tries to do the right thing when the user passes a path that's
already escaped in part (e.g. "http://hg.example.org/path%20with spaces/").
If we're redirected, urllib2 will happily follow the URL it's given
without escaping anything. I'm not sure what we would have to hook
to work around that.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 06 Aug 2007 00:35:06 -0300 |
parents | 2073e5a71008 |
children |
line wrap: on
line source
# # tcsh completion for Mercurial # # This file has been auto-generated by tcsh_completion_build.sh for # Mercurial Distributed SCM (version 325c07fd2ebd) # # Copyright (C) 2005 TK Soh. # # This is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free # Software Foundation; either version 2 of the License, or (at your # option) any later version. # complete hg \ 'n/--cwd/d/' 'n/-R/d/' 'n/--repository/d/' \ 'C/-/( -R --repository \ --cwd \ -y --noninteractive \ -q --quiet \ -v --verbose \ --debug \ --debugger \ --traceback \ --time \ --profile \ --version \ -h --help)/' \ 'p/1/(add addremove annotate bundle cat \ clone commit ci copy cp \ debugancestor debugcheckstate debugconfig debugdata debugindex \ debugindexdot debugrename debugstate debugwalk diff \ export forget grep heads help \ identify id import patch incoming \ in init locate log history \ manifest outgoing out parents paths \ pull push rawcommit recover remove \ rm rename mv revert root \ serve status tag tags tip \ unbundle undo update up checkout \ co verify version)/'