push and update question

Matt Nordhoff mnordhoff at mattnordhoff.com
Mon Jun 9 04:26:55 CDT 2008


Robert Wierschke wrote:
> Hi,
> 
> I've pushed my changes from one hr repository to another. When using hg
> tip in the push target I see the tip of the other repo which indicates
> that the changes were applied to this one. But the working copy did not
> contain the changes. I the tried "hg update" which states, that there is
> nothing to update. Only when I use "hg update -r tip" the changes were
> applied to my working copy. According to the "hg hep update" text "hg
> update" and "hg update -r tip" should be the same. Looks like a little
> bug to me.
> 
> regards
> robert

'hg help update' says (emphasis added):

    Update the working directory to the specified revision, or the
    tip *of the current branch* if none is specified.

My guess is that you're using named branches, and it updated to the
latest commit in the current branch, which isn't necessarily the tip.

Run "hg branches" to confirm you have multiple branches. From there, you
might want to merge them ("hg merge"), or you might not.
-- 


More information about the Mercurial mailing list