Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting "nothing changed" when commiting in Mercurial to Google Code

I set up a new project on Google Code and have set Mercurial as my Source Control.

I did an hg clone <url> just like the Checkout page states and got a copy of this repository locally. At the moment, it's still empty.

Now I added some files in this folder and tried committing them with: hg com -m "Initial Commit" but I am always getting back nothing changed.

So I check the status with hg status and get:

? file1
? file2

So Mercurial knows that these files should be added but I am still getting nothing changed when trying to commit. Obviously this happens when trying to push as well but I guess that's because I haven't been able to commit yet.

Has anyone encountered this problem ?

like image 713
Andreas Grech Avatar asked Jul 12 '10 23:07

Andreas Grech


People also ask

How do I revert a commit in Mercurial?

Reverting Local Changes If you use the TortoiseHg client to work with Mercurial from TestComplete, you can cancel all local changes not committed to the repository yet: Select File > Source Control > Revert from the TestComplete main menu.

What does hg update do?

Description. Update the repository's working directory to the specified changeset. If no changeset is specified, update to the tip of the current named branch and move the active bookmark (see hg help bookmarks). Update sets the working directory's parent revision to the specified changeset (see hg help parents).

What is hg in terminal?

The hg command provides a command line interface to the Mercurial system.


1 Answers

The problem was that I was forgetting about add.

So now after I cloned, I did a hg add and then an hg com -m "Initial Commit" and it worked.

like image 61
Andreas Grech Avatar answered Oct 13 '22 12:10

Andreas Grech