Frage

So I've been coordinating some source code across my office with Mercurial.

Long story short, it looks like I did something completely wrong and screwed up and lost a ton of files on some revision

In any event some amount of investigative work has helped me drill down which revision is where things went wrong and hopefully I can recover some files from that. The problem is that I can't seem to pull that particular revision due to an error:

C:\sourcefolder>hg update -r 147
abort: case-folding collision between Files/someStupidFile.png and Files/SomeStupidFile.png

This project was coordinated across a Windows machine and a Mac, so that plus some carelessness caused the case folding issue.

I'm aware of case folding issues and I know how to fix them - but that only creates a new revision where things are fixed. I don't want that. I want, in this case, every other file in revision 147.

How can I tell Mercurial "get everything from 147, ignore any broken files"?

I know that you can get a file listing and I've done that once to try and construct a batch file to get a set of files I needed, but I figure there has got to be some better way.

War es hilfreich?

Lösung

You can just generate a tarball with hg archive.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top