Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Combination of incoming + outgoing + status?

Tags:

dvcs

mercurial

Is there an hg command that will combine hg incoming + hg outgoing + hg status?

This would tell you if there's anything remote that needs to come in, anything committed locally that needs to go out, or any local changes that need to be committed.

like image 253
Marcus Leon Avatar asked Feb 01 '11 18:02

Marcus Leon


1 Answers

Though you won't get the actual changesets or files, to get the current status summary, use the summary command:

hg summary --remote

Example output:

C:\Temp\repo> hg summary --remote
parent: 5:18ee64a17016 tip
 Added lots of unit-tests for DatabaseConnection.
branch: default
commit: 1 modified                          <-- status
update: 3 new changesets (update)           <-- local status, not at tip
remote: 1 or more incoming, 1 outgoing      <-- incoming/outgoing

Note that you only get counts, not the actual changesets, for that you need to execute the actual incoming or outgoing or status commands.

like image 139
Lasse V. Karlsen Avatar answered Jan 27 '23 10:01

Lasse V. Karlsen