Using Mercurial (hg), how to push just one file or one directory out?
- by Jian Lin
Using Mercurial, we can commit one file by using
hg commit file.rb
or 1 folder
hg commit foldername
But how can we push just 1 file or 1 folder out?
The whole project can be pushed using
hg push ssh://[email protected]//project/code/preliminary
but there seems to be no way to push out just 1 file or 1 folder?
I tried the following and they don't work:
hg push ssh://[email protected]//project/code/preliminary app/views/index.html.erb
or
hg push ssh://[email protected]//project/code/preliminary/app/views/index.html.erb