Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mixing Version Control with Mac OS X Lion Versions

Under Mac OS X 10.6 Snow Leopard, I've made good use of version control, Mercurial in my case. After upgrading to Mac OS X 10.6 Lion, I've discovered that quite a few files in my Mercurial repositories are now also managed by the new Versions feature.

I'm nonplussed by the situation. I've also utterly failed to find anything useful on the web, the combination of "Versions" and "version control" being pretty ambiguous.

What sort of issues might arise by both Mercurial and Versions coming into play? If I just ignore Versions, can I expect Mercurial to work transparently? Are there any opportunities offered by using the two together?

like image 419
Michael J. Barber Avatar asked Aug 15 '11 19:08

Michael J. Barber


People also ask

Is macOS Lion still supported?

Support Ending December 31, 2019 In keeping with Apple's release cycle, macOS 10.08 Mountain Lion is no longer receiving security updates as of November of 2013. Our latest fully-supported operating system is macOS Mojave (10.14).

What year is Mac OS X Lion?

OS X Lion (version 10.7) is an operating system designed by Apple and released in 2011. It is generally used with Apple Macintosh computers (Macs). Like any operating system, it allows you to run programs, organize your files, browse the web, and more.

What's the difference between macOS and OS X?

Is there any difference between Mac OS X and macOS? No, they are essentially the same thing — just named differently. In fact, three terms were used at different times with reference to Apple's operating system: Mac OS X, OS X, and macOS. Mac OS X was the official naming through version 10.7, from 2001 to 2011.

What is 10.7 called?

OS X Lion, also known as Mac OS X Lion, (version 10.7) is the eighth major release of macOS, Apple's desktop and server operating system for Macintosh computers. Apple Inc. Unsupported as of about October 2014; iTunes support ended in September 2015.


2 Answers

Versions is more like a backup. It saves a version every time you "save" (or periodically with autosave), so use it if you need to recover a version since your most recent commit to version control.

like image 126
Nicholas Riley Avatar answered Oct 23 '22 06:10

Nicholas Riley


They will work together. However only editing with certain apps will use versions e.g. Xcode, textEdit. I don't think it is the file itself that decides if it is under versions (ie vi won't update the version)

What Versions does is automatically save the file according to John Siracusa's review

Rather than creating a new file alongside the original, Lion continuously saves changes directly to the open document. It does this when there are large document changes, during idle times, or on demand in response to requests from other applications for access to the document's data.

But as per Apple's support note you can just save as before

You can manually create a version of your saved document at any time by choosing File > Save a Version or press Command-S (⌘-S).

So I think that mercurial will not see any difference to a file now saved using Versions.

I suspect you could have a GUI on mercurial tat would note a save via Versions but as the idea of a commi is to have files in a consistent state I suspect there is not much that could be done with this

like image 38
mmmmmm Avatar answered Oct 23 '22 05:10

mmmmmm