Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Mercurial, how can I see what changes have yet to be pushed?

Tags:

mercurial

I'm used to git, where you can run gitk and get something like the following:

gitk showing the difference between the local and remote branches

Here you can see that there are a couple of changes that need pushing to the remote branch. Alternatively, I can use git log --decorate and the output would be:

b8c2926... (refs/heads/next) Update instructions
6d9f914... Add a first go at generic x compiling
49a6dac... (refs/remotes/github/next) Ignore temp files

Is there anything like this with Mercurial?

like image 476
richq Avatar asked Apr 26 '09 14:04

richq


People also ask

How do you revert push changes in Mercurial?

If you want to revert changes already committed: To backout a specific changeset use hg backout -r CHANGESET . This will prompt you directly with a request for the commit message to use in the backout. To revert a file to a specific changeset, use hg revert -r CHANGESET FILENAME .

What is hg amend?

Adapting the last changeset The easiest and probably one of the most important history editing commands is hg commit --amend . This command doesn't create a completely new changeset. Instead, it takes any new changes in your working directory and combines them with the parent of the working directory.


1 Answers

hg outgoing - will show you the changesets that are waiting to be pushed to a remote repository.

hg incoming - shows new changesets that are in the remote repository.

like image 123
Steven Lyons Avatar answered Sep 26 '22 20:09

Steven Lyons