Files marked obsolete

Ralph Alvy ralph at ralphalvy.com
Mon Apr 18 13:23:12 UTC 2016


>> Please excuse my lack of experience here. I’m very new to version 
>> control.
>> After trying both Git and Mercurial, I found Mercurial much more 
>> intuitive.
>> I’m using SourceTree with Mercurial.
>>
>> After deleting 2 unnecessary source files, my SourceTree FileList 
>> shows,
>> as expected, those 2 files are marked with a '-' sign. No problem. I 
>> assume
>> doing a Commit with those Staged will remove them from Tracking. But 
>> I also
>> see 2 new files marked with '?' that are copies of the 2 deleted 
>> files,
>> appended with ".obsolete" and a timestamp. What happens if I Stage 
>> those
>> files before doing the Commit?
>>
>>
> I doubt those files were created either by Mercurial or SourceTree; I
> assume they were created by some other tool that you are using at the 
> same
> time.
>
> Mercurial will treat them just like any other file - if you use "hg 
> add" or
> the SourceTree equivalent, and then commit them, Mercurial will start
> tracking them.
>
> Hope that helps,
>
> Simon

Thanks, Simon. I just tested this out and found, indeed, Xojo creates 
such files after I delete the objects in question.

Ralph



More information about the Mercurial mailing list