Another heavily-publicized feature of Lion is Versions, which keeps older copies of files as you save new ones and allows you to go back to previous copies to compare, restore, and copy-paste things you didn't mean to change. Unlike Resume, applications will need to be changed to support this functionality.

In a Versions-supporting program like TextEdit or Preview, you'll notice that the normal "Save" or command-S function is now called "Save a Version" instead. There's no special command you need to know to save Versions - if the app supports it, this happens automatically.

 

When you want to go back and look at your previous versions, select the Revert to Saved option in the menu to open the Versions interface.

You'll be presented with a very Time Machine-esque interface that will let you browse through your previously saved copies, compare them to your working copy, and restore an old copy to be your new working copy.

So how does this work? Versions stores its data at the root of your OS volume in a hidden and locked-down folder called 'DocumentRevisions-V100". Files are saved using the UID for each user account (the UID is a unique number assigned to each user account at time of creation, and is normally hidden from the user. All UNIX and UNIX-like operating systems use UIDs for user accounts). In the screenshot below, "501" is my account's UID, and the numbered folders each correspond to an individual file.

Drill down into any of the folders stored here, and you can see where OS X is keeping the older copies of your files.

Whenever you delete the source file, all stored versions of it are also deleted, so don't try to use Versions to recover accidentally deleted files - that's not what it's for, and you'll still need to be careful about what you do and don't keep.

It's not immediately obvious how many files OS X will store versions for, or how much disk space this hidden folder will take up if you let it, but disk space seems to be the limitation here - I was able to save 63 versions of an individual file without overwriting any older copies. Given Apple's desire to hide the seams and inner workings of OS X from regular users, I feel confident in saying that (1) OS X won't allow this system folder to take up so much space that it impacts OS performance or storage of regular files, and (2) there's probably some sort of safeguard present that will eventually begin deleting older versions of things as disk space runs low. This is how Time Machine works, and Versions is obviously taking cues from that feature.

System Information Resume
Comments Locked

106 Comments

View All Comments

  • ebolamonkey3 - Thursday, July 21, 2011 - link

    Well, since Apple retains 30% of the App price, I'm not sure if that figure above is talking about the total amount that customers have spent buying songs and apps, or if that's Apple's revenue (ie: 30% cut) of the pie.
  • PreOmegaZero - Wednesday, July 20, 2011 - link

    Microsoft names the OS versions as such (6.0 vs 6.1) because changing it to 7.0 (like they admit they should have done) broke many older apps/installers that did OS version detection.
    So the version numbering is simply from a compatibility standpoint.
  • darwinosx - Wednesday, July 20, 2011 - link

    These aren't service packs. Its a silly comment which tells us you either don't know what a service pack (which is a Microsoft term for Microsoft software) actually contains or you didn't read this review.
  • Belard - Thursday, July 21, 2011 - link

    Service packs? Apple uses actual version numbers, but in the past few years - they've only been patching Snow Leopard.

    The difference in XP SP1 / SP2 / SP3 is bug fixes, security patches and a few things here and there, but feature wise, no difference. XP-Home/Pro are visually different than XP-MCE (Which is XP Pro with a nice visual face lift but with VPN ripped out).

    I think Apple charges like $50 for a 5 user license upgrade... much better than the lame Win7 (Vista and XP) charging $100 for an upgrade disk which is messy when it comes to a clean install.
  • anactoraaron - Sunday, July 24, 2011 - link

    "much better than the lame Win7 (Vista and XP) charging $100 for an upgrade disk which is messy when it comes to a clean install."

    You have no clue about which you speak. Win7 upgrades/clean installs are simple for even the simplest minds-present party excluded apparently.
  • name99 - Thursday, July 21, 2011 - link

    An improvement? Uhh, you are aware that Snow Leopard ALSO sold for $29?

    The more interesting points you should be making are that:

    - $29 gets you the right to install the OS on EVERY mac you own. It's right there in the TOS. For most people this won't matter much, but for those with a desktop machine, a laptop and a HTPC, it's rather cool.

    - and you get the right to virtualize two instances, if you care

    - and note the conspicuous absence of any sort of DRM covering the OS, not to mention the home/home mini/pro/ real pro/enterprise/super singing & dancing version crap that MS offers up.

    (And, BTW, you get the Dev Tools for free. They were $5 in SL, but I think they've dropped to $0 with Lion.
    As far as I know, Dev Studio is not free, not close.)
  • ATimson - Thursday, July 21, 2011 - link

    Assuming that by "Dev Studio" you mean "Microsoft Visual Studio", yes, they have a fully-functional free version.
  • name99 - Thursday, July 21, 2011 - link

    How come when I go to

    http://www.microsoftstore.com/store/msstore/en_US/...

    I see a bunch of different prices, from $3,800 to $400, but no $0?

    I'm not being pissy, I really want to understand what is going on here.
  • Ryan Smith - Friday, July 22, 2011 - link

    How can you buy something that's free?

    http://www.microsoft.com/visualstudio/en-us/produc...
  • kosmatos - Monday, November 4, 2013 - link

    It's 2013 now, and you were spot on, quicksilvr.

Log in

Don't have an account? Sign up now