Search code examples
mercurialpushdvcs

In Mercurial (hg), how do you see a list of files that will be pushed if an "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?


Solution

  • 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