Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Mercurial (hg), how do you see a list of files that will be pushed if an "hg push" is issued?

Tags:

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?

like image 214
nonopolarity Avatar asked Jun 14 '10 23:06

nonopolarity


People also ask

How do you commit and push in Mercurial?

From the main menu, choose VCS | Mercurial | Push. The Push Commits dialog opens showing all Mercurial repositories (for multi-repository projects) and listing all commits made in the current branch in each repository since the last push.


1 Answers

First, create a file with this content:

changeset = "{files}"
file = "{file}\n"

Let's say you call it out-style.txt and put it in your home directory. Then you can give this command:

hg -q outgoing --style ~/out-style.txt | sort -u
like image 130
JWWalker Avatar answered Oct 03 '22 13:10

JWWalker