Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove directory within central repository in Mercurial

Tags:

mercurial

I am looking to remove a directory from local and central repository. I managed to do it locally by

     hg remove name_directoriy  
     hg commit

However, after pushing my changes to the central repository the deleted folder is still in the central repository while it is gone locally.

How to remove directory in central repository?

Thank you

p.s. with 'remove' i mean that it does not appear but still it is in the history

like image 603
latvian Avatar asked Dec 16 '22 20:12

latvian


1 Answers

What you want to do on the remote repository is:

hg update

What you've described above removes the files in that directory, and then pushes the change the removes the files up to the remote repository, but it doesn't update the working directory files on the remote repository. To update the working directory on that remote repository you need to run the update command there.

As everyone else is pointing out those files, of course, still exist in history, but if you want them out of the working dir it's the update you're missing.

like image 70
Ry4an Brase Avatar answered Apr 20 '23 00:04

Ry4an Brase