DISQUS

toxicsoftware.com: Mac OS Custom Icons and subversion don’t mix

  • cos · 3 years ago
    weird. has never let me check "Icon\n" files into the repository in the first place due to the name.
  • schwa · 3 years ago
    Go figure. I have them though. Maybe a previous version of did allow this files into the repository.

    This probably means you wont need to add the file pattern to the -ignore configuration.
  • Ryan Wilcox · 3 years ago
    When I encountered this I just had the one Icon file, so I didn't have to write a script to do it :)

    (and to never do it again, set the global-ignore option in your ~/.subversion/config file to Icon*)

    Blog entry with my woes on the issue
  • schwa · 3 years ago
    Ryan, lucky!

    I didn't have that many either (about 3 files each in 2 repositories). But the dump/filter process took so long (large repositories) that I didn't want to dork about.

    Your blog page is great, going into more detail about the problem. The only problem with it is that you can't always find the Icon files by doing a checkout. My icon files were in a directory that had previously been deleted - but the dump file was _still_ corrupt (I had aactually deleted them from one repository and moved them to another). You really do have to scan the dump file for the files themselves.
  • Blake Chaffin · 3 years ago
    Did you get a chance to ask Brian Fitzpatrick about this at C4? I asked him, but couldn't remember which blog it was, sorry. At any rate, he was unaware of any issues at the time.

    Sadly, there were several people I didn't get to meet, and I guess you're one of them. Maybe next year...
  • Rob · 1 year ago
    Thanks for the info guys.

    I have a repo with many OmniGraffle docs that had their own icon file. They all bork the admin load.

    Best way to find all Icon files is:

    grep "^Node-path: .*/Icon" repo.dump

    I then used a multi-line argument call to dumpfilter to exclude all the Icon paths in one call:

    dumpfilter \
    exclude "Project/Diagrams/Garment Meeting 20050601.graffle/Icon" \
    exclude "Project/Diagrams/Inspector/Fabric Order Inspector.graffle/Icon" \
    exclude "Project/Diagrams/Inspector/Inspector Sheets.graffle/Icon" \
    exclude "Project/Diagrams/Reports/Testing.graffle/Icon" \
    exclude "Project/Diagrams/Wizard/Fabric/New Fabric Order.graffle/Icon" \
    exclude "Project/Diagrams/Wizard/Fabric/New Fabric Supplier.graffle/Icon" \
    exclude "Project/Diagrams/Wizard/Fabric/New Fabric.graffle/Icon" \
    exclude "Project/Diagrams/Wizard/Wizard Template.graffle/Icon" \
    exclude "Project/Diagrams/Reports/Fabric/Workspace Reports.graffle/Icon" \
    exclude "Project/Diagrams/Inspector/Fabric/Fabric Inspector.graffle/Icon" \
    exclude "Project/Diagrams/Inspector/Fabric/Supplier Inspector.graffle/Icon" \
    exclude "Project/Diagrams/Reports/Fabric/Detail Report.graffle/Icon" \
    < repo.dump \
    > repo.filtered.dump