How can I examine a changeset in mercurial without looking up its parent? In mercurial, what’s the equivalent of
git show HEAD^
Git-show gives the changeset metadata and the diff as well.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your question has two parts. First, how to get the metadata and diff for a changeset all at once:
You can shorten the options:
The second part of the question is how to say “the parent changeset of X” without looking it up. For that you can use the parentrevspec extension Martin mentioned.
Once you enable the extension you can do:
You could add an alias to your
~/.hgrcfile if you don’t want to retrain your fingers from git’s command:Then you could use: