[BUG] new extension: localbranch

Guido Ostkamp hg at ostkamp.fastmail.fm
Sun Sep 2 10:22:59 CDT 2007


Hello,

>> When I create a repository with some content, then create a test 
>> branch, change and commit something, switch back to default branch, add 
>> a new file commit and switch back to the test branch and update to tip, 
>> the new file created in default branch is not being deleted though it 
>> should not be there.
>
> Yes, this is a defect. localbranch is not currently as smart as it could 
> be about how it updates the working directory state when switching 
> branches. I'll have to think about a nice fix.
>
> Hopefully this bug isn't too severe, since the file is untracked in the 
> target branch. But it is a bug.

thanks for confirming the bug, I'm looking forward to test a fix once 
you've got one.

Regarding severity of the problem I think that using commands like 'hg 
add' without further args might be fatal in that situation. I'm currently 
working around this problem by using 'hg purge'.

Regards

Guido


More information about the Mercurial mailing list