PDA

View Full Version : Mercurial vs .graffle files: \r and \n in filenames


entropyminus
2007-09-17, 09:40 AM
Hello,

I decided to switch my personal version control system to mercurial (http://www.selenic.com/mercurial/wiki/). When adding my existing files to the repo I kept getting errors about files containing "\r" and "\n" in the file name. After some poking around, it turns out .graffle files are the culprit. Other package file types such as .pages seem to work ok.

Any clues as to why .graffle files might have these chars. in their file names, and is their anything I can do about it, except creating a script to zip them prior to committing (which would kinda sorta break version control a bit).

Thanks,

/M.

Joel
2007-09-17, 02:08 PM
It's due to the dynamic icon for the file, if you have OmniGraffle 4.2.1 you can use the Document Settings Inspector to save the file out as a "flat" file and not a package.