Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to see files in repository before running 'update'

I run hg pull which added new changes to my repository. Before updating my working directory with the new changes i would like to see these new files/changes. I believe in SVN i used svn st -u but how is it done in Mercurial?

like image 551
latvian Avatar asked Nov 24 '10 20:11

latvian


People also ask

How do I see files in a git repository?

The Git Show command allows us to view files as they existed in a previous state. The version can be a commit ID, tag, or even a branch name. The file must be the path to a file. For example, the following would output a contents of a file named internal/example/module.go file from a tagged commit called “release-23”.

How do I see changes in local repository?

From the context menu of the dialog you can show a diff of the changes. Check the local changes you made using Context Menu → Compare with Base. Check the changes in the repository made by others using Context Menu → Show Differences as Unified Diff. You can also revert changes in individual files.


2 Answers

Before you even pull you can use:

hg incoming --stat

to see a summary of changes or

hg incoming --patch

to see the actual deltas.

After pulling (but before updating!) you can do:

hg status --rev tip

to see a list of the changed files, or

hg diff --rev tip

to see a summary of the changes, or

hg diff -r tip

to see the combined diff.

like image 133
Ry4an Brase Avatar answered Nov 18 '22 14:11

Ry4an Brase


(After pulling the changes via hg pull) you can run hg status --rev tip to show an output similar to svn st -u.

like image 23
Michael Avatar answered Nov 18 '22 14:11

Michael