Mercurial: R with the status of "hg" how to commit?

If I do the status "hg" and see the following:

R flash/AC_OETags.js 

this means that there is no file, but at some point it was deleted.

How do I “commit” this change so that it stops displaying when I do “hg status”?

== UPDATE ==

The answer is to commit the file. In fact, there are ~ 100 files with status R, because I deleted the entire directory tree. Does anyone know how to commit all files in a directory tree at a time?

I do not want to do only hg commit , because there are other changes.

+4
source share
3 answers

You can transfer only this file:

 hg commit flash/AC_OETags.js 

however, having “masses of other uncommitted files” is a terrible process. You need to come up with a workflow that allows you to commit frequently.

+3
source

“R” means “Deleted,” so the next time we commit to Mercurial, this file will be deleted. (The history of the file will remain in the repository, so, of course, we can always return it).

so run the hg commit command and everything will be fine

Thanks to hginit.com for this tidbit - its my Mercury Bible

+4
source

You can use the repository explorer from TortoiseHg to easily manage the files you want to include in the commit.

In addition, deleting a directory probably requires a set of changes itself. You have to get used to committing more often (one concept, one fixation ... and it is local anyway). Also, until you push your changes to anyone (or any of you), you can still use hg rebase --collapse to regroup some sets of changes if you think you shared too much ( this is a more complex function, which I suggest you try the test repository first, since you can break things if you are not careful)

0
source

All Articles