How to re-enable a removed file ?
Nicolas Pinault
nicolasp at aaton.com
Thu Jan 24 07:15:47 UTC 2019
Le 24/01/2019 à 03:26, Matt Harbison a écrit :
> On Mon, 21 Jan 2019 06:02:45 -0500, Nicolas Pinault via Mercurial
> <mercurial at mercurial-scm.org> wrote:
>
>> Hi,
>>
>> I use a tool that, when updating some files, remove the files then
>> create new ones with new/same content.
>> My problem is that these files are marked as removed.
>> How can I "un-remove" them so I can see the difference with previous
>> version ?
>
> It sounds like you can simply `hg add $filename` them back, if there's
> still a file in the filesystem (with potentially different content).
> Depending on what else is removed, you can probably use
> 'set:removed()' instead of naming each file to add.
That's it, new files are generated (with new or same content) after
being removed.
I'll try to `hg add` them next time I use the "problematic" tool.
Thanks for your help.
More information about the Mercurial
mailing list