We can see all the changesets and the files involved using
hg outgoing -v
but the filenames are all scattered in the list of changesets.
Is there a way to just see a list of all the files that will go out if hg push
is issued?
We can see all the changesets and the files involved using
hg outgoing -v
but the filenames are all scattered in the list of changesets.
Is there a way to just see a list of all the files that will go out if hg push
is issued?
A simple
hg out
will also solve this. It will list all committed but yet to push checkins.A somewhat under-appreciated feature:
hg status
can show information about changes in file status between arbitrary changesets. This can be used to get a list of files changed between revisionsX
andY
:In this case, we can use
hg outgoing
, to find the first outgoing changesetX
and then doto see the files changes since revision
X
. You can combine this into a single line in your shell:I use Torgoise Hg, which is a shell extension that has a "synchronize" view allowing you to see outgoing files before you push them. It's convenient for commits as well, and other things.
First, create a file with this content:
Let's say you call it out-style.txt and put it in your home directory. Then you can give this command:
I usually use
It makes the listing shorter, but doesnt sort. But thus far I havent been in a situation where I want to push so much (and at the same time check the files) that its been a problem.
[Edit] To do what you want:
cut
to remove thefiles:
parttr
to put them on separate linessort
Like so:
You can put this in ~/outgoingfiles.sh or something to have it nice and ready.