3

I'm new to VCS and I decided to give Mercurial a try. I signed up for bitbucket and created some repositories. The I created /home/max/hgrepo/ and ran hg clone http://bitbucket.org/[username]/[repository]

That made a [repository] directory. I copied some source files into this directory. then I hg add, hg commit and hg push. Then I wanted to move my source files into a src directory instead of having them into the root dir. So I moved all the sources files down one directory to my src directory. I then ran hg add *, then hg commit and lastly hg push.

The problem I have is that the old sources files in the root directory of my repo are still there. How do I remove them? I don't have them in my local repo anymore. Is there a way to fully sync my local repository and my remote one?

tshepang
  • 64,472
  • 86
  • 223
  • 290
n0pe
  • 9,411
  • 13
  • 60
  • 108

1 Answers1

4

You can use the addremove command to mark missing files (those prefaced with a !) as removed.

See the excellent Mercurial: the Definitive Guide chapter on tracking files.

For future reference, there is a command to move files, hg mv.

jasonwryan
  • 71,734
  • 34
  • 193
  • 226