Reputation: 8552
I've been using Mercurial for a couple weeks without issues, but I've run into a question this morning. I've tried running both "hg pull" and "hg update" to get all file changes from the repository as follows. However, when I run "hg diff" afterwards, I still see file changes.
> hg pull
searching for changes
adding changesets
adding manifests
adding file changes
added 7 changesets with 8 changes to 6 files
> hg update
6 files updated, 0 files merged, 0 files removed, 0 files unresolved
> hg diff
(a file change is listed)
How do I get to the point where "hg diff" will yield zero changes?
PS - hg status yields one change:
M aPath\bPath\cPath\MyForm.Designer.cs
Upvotes: 0
Views: 160
Reputation: 62168
The results you are seeing simply mean that your MyForm.Designer.cs
file has changes that you did not commit (i.e. local modifications). You can see how you changed the file using hg diff
.
You have two options to deal with the local modifications:
hg update --clean
)Upvotes: 2
Reputation: 97282
hg pull
updates only repo
This finds all changes from the repository at the specified path or URL
and adds them to a local repository (the current one unless -R is
specified). By default, this does not update the copy of the project in
the working directory.
you have to hg up
in order to update Working Copy. And I can't see any correlation between diff and results of pull - undo local changes you can in more easy and fast and correct way
Upvotes: 1