hg purge (copy move but don't delete)
Uwe Brauer
oub at mat.ucm.es
Mon Dec 17 08:43:48 UTC 2018
> I suppose you might be able to hg add, hg rename, & then hg remove
> --after. (I haven't actually tried this.) However, if you're on the
> command line, wouldn't it be easier to use the appropriate OS command?
Maybe I should describe my scenario in more detail. Suppose I want to
commit and push urgently some fix.
Before I do, I just run
hg status
And find out that there are some new files, which most likely I added
for testing. Adding them would maybe add garbage to the repo, but just
deleting them might also not the right thing to do. I could now run a
find together with a mv to some place outside the repo. But that looks
cumbersome.
But maybe there is nothing wrong with having files, which are not
registered. Just commit and push and then deal with these files later.
Uwe Brauer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5025 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20181217/570cb24e/attachment.p7s>
More information about the Mercurial
mailing list