In Git it is easy, because remote/branch
is pointing to a different commit than branch
. How to do it with Mercurial?
We can view the unpushed git commits using the git command. It will display all the commits that are made locally but not pushed to the remote git repository.
Git commits are written with timestamps containing the timezone of the machine. Once written, it's not regenerated or changed by normal reading operations.
If you mean seeing what's different between your local repo and the one you're pushing to, try
hg outgoing
Since Mercurial 2.1, there is also a purely local solution: phases. The draft
phase is probably what you are looking for. For details, refer to:
https://www.mercurial-scm.org/wiki/Phases
You may find hg phase <rev>
and hg log -r "draft()"
interesting.
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