1

I am new on linux, and i really like it so far. But i have a problem with mercurial.

I have a folder that has 5 subfolder, each of them with a project. So i'm working at a project (a subfolder) and i want to commit modifications only from that folder.

So in linux what i did was:

cd /var/www/project_foder/subfolder

hg status //it brings all the modifications(also from other projects)

hg commit -m "Message"

but it commit all the project modifications.

How can i commit only from the selected folder modifications.

Thanks in advance for your answers!.

PS: sorry for my poor english

Stefan C
  • 123
  • 2
  • 10

1 Answers1

9

You can specify the folder name as argument. You can also make hg status and hg commit apply to the current directory (and sub dirs) only by using a single dot as argument, e.g.:

cd /var/www/project_foder/subfolder
hg status .
hg commit -m "Message" .
David Levesque
  • 22,181
  • 8
  • 67
  • 82