Mercurial finds illegal name while PULL
I pulled my project out of bitbucket. Then when you merge it, mercurial says:abort: filename contains ':', which is reserved on Windows: 'uploads/images/ \xd1\x8d\xd0\xba\xd1\x80\xd0\xb0\xd0\xbd\xd0\xb0 - 29.03.2012 - 19:41:35.png'
How can I remove this file from the repo? I don't need this, but it aborts the merge. I can't see this file in the folder on Windows.
+3
source to share
1 answer
On a Windows system, you can do something like this:
hg clone --noupdate PATH_TO_YOUR_REPO
hg debugsetparent tip
hg remove --after "uploads/images/\xd1\x8d\xd0\xba\xd1\x80\xd0\xb0\xd0\xbd\xd0\xb0 - 29.03.2012 - 19:41:35.png"
hg commit "uploads/images/\xd1\x8d\xd0\xba\xd1\x80\xd0\xb0\xd0\xbd\xd0\xb0 - 29.03.2012 - 19:41:35.png"
After that, you can update and merge. It's probably easier to just do this on an OS with a more forgiving file system.
+3
source to share