SourceTree Can't Commit File Deletions (Mercurial)

I'm working in Unity3D using SourceTree with Mercurial and a Bitbucket repository. Each time I delete files and attempt to commit those delitions to push to the Bitbucket repo, I receive the following error:

hg commit -y --logfile C:\Users\blah\AppData\Local\Temp\1avoxdxt.dye
nothing changed (6 missing files, see 'hg status')

I can commit file additions/modifications, however any deletions likewise do not occur, as denoted above.

I'm relatively new to VCS; is there some caveat of SourceTree or Mercurial that I'm overlooking?

Thanks

1 answer

1 accepted

This widget could not be displayed.

Hi Jemima,

Perhaps you're deleting the file from the file system but not from Mercurial? Mercurial keeps an index of files. It can tell a file is 'missing', but as far as it's concerned you haven't deleted the file from your repository. You can right click on the file in SourceTree (it should have a grey icon) and hit 'Remove'. This will mark it for deletion in your index so the next time you commit it will really be removed.

Hope that helps.

That works, thanks!

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 10 hours ago in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

53 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you