ssh push to repos outside an homedirectory?

Mark Williamson mark.williamson at cl.cam.ac.uk
Wed Jun 28 01:13:49 UTC 2006


> Ok, good to know that works. I have to ask, though, why is this
> different than other ssh-based things like scp and rsync with use a
> colon like this:
>
> scp foo hostname:/absolute_path
>
> rsync -e ssh foo hostname:~/homedir_path
>
> ?
>
> It seems like it violates the Law of Least Surprise. I may be the
> only one, but it was nearly impossible for me to figure out on my own.

Yes, I got bitten by this too.  Whatsmore, the use of the single slash 
confused me into thinking I always had to specify a fully qualified path and 
it was a long while until I discovered otherwise.

Is there any reason for not supporting both syntaxes?  The one ssh suggests, 
and the one that most users expect?

Cheers,
Mark

>
> Just a suggestion.
>
> -ryan
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial

-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!



More information about the Mercurial mailing list