Why did "hg push", push my local bookmark to remote?

Jaikiran Pai jai.forums2013 at gmail.com
Fri Feb 6 07:47:16 UTC 2015


On Friday 06 February 2015 12:47 PM, Sean Farley wrote:
> I gave this a try but unfortunately, the result was the same, my commit
> ended up in the remote repo. Here's what I did:
>
> hg bookmark new-foo-bar // new bookmark
> hg up new-foo-bar // up to new bookmark
> ... do changes
> hg commit -m "expected to be a commit in my bookmark"
> hg push -r . upstream // upstream is the  remote repo shared by the
> entire team
>
> It ended up pushing that commit to the remote repo and available for others.
> Um, what do you think '.' means? 'hg help revs'
Sean, I did take a look at what "." means, before I gave it a try 
locally. When I was trying it I didn't really expect it to get me past 
the issue that I am discussing in this thread, but I gave it a try since 
your earlier reply (about using the nudge alias) sounded like it was a 
solution. Sorry if I misunderstood your earlier reply.

-Jaikiran



More information about the Mercurial mailing list