website stat

The day I realized I need Leopard on my laptop

So, after, like, two hours of coding I made a huge mistake and reverted (prior to committing) a file to its previous state (from HEAD).

If this had happened with Leopard (like it happened a few days ago on my desktop iMac) I would just have to go to Time Machine and recover it.

Oh boy…


7 Responses to “The day I realized I need Leopard on my laptop”

  1. ricardo
    Published at January 8th, 2008 at 5:59 pm

  2. mlopes
    Published at January 8th, 2008 at 6:05 pm

    ricardo,

    Cool dude. And rsync exists since 1996.

    Thing is, you open Mail.app and Time Machine and you can select the email to recover from within the email client.

    Time Machine has brought the ease of use that is yet to be comparable with any other backup system. Otherwise I’d still be using rsync along with crond, which works pretty well.

  3. Ricardo M Carvalho
    Published at January 8th, 2008 at 10:44 pm

    Actually, since I run Leopard, I’ve recovered about 3 big “mistaken files”.. Amazing! :)

  4. Paulo Köch
    Published at January 9th, 2008 at 3:22 am

    Looks like you’re delaying your commits. Have you looked at Mercurial?

  5. mlopes
    Published at January 9th, 2008 at 12:39 pm

    Koch,

    I don’t commit every single line of code. I do it by blocks, i.e., did functionality X, then commit functionality X.

  6. Paulo Köch
    Published at January 9th, 2008 at 2:37 pm

    Yes, but it seems you’re reverting when you should be doing another branch from last head.

    I don’t know. The usage pattern just rang a bell saying “this guy is losing LoC’s over SVN’s limitation”. I felt like I should tell you something. =)

  7. mlopes
    Published at January 9th, 2008 at 6:32 pm

    Koch,

    Actually I ran a custom-made script that does a diff and asks which files to revert. I pushed the key ‘a’ (all) instead of the filename. My bad, nothing to do with SVN.