I'm used to git, where you can run gitk and get something like the following:
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?
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 .
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With