Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the 'Revert' option in Xcode 4's Source Control?

Tags:

revert

svn

xcode4

I'm using SVN in Xcode 4 as my source control; but can't see any option to revert to an older revision? Either a 'revert' or an 'update to revision' command? The 'Update' option always seems to update to the HEAD.

Of course - I can do this on the command-line, but can't believe there's no way to do it within Xcode...

Does anyone know where it's hidden? Or is there really no such option?

like image 327
Wex Avatar asked Mar 24 '11 10:03

Wex


People also ask

How do I see changes in Xcode?

To compare changes in one source file, open the file and click the Enable Code Review button in the upper-right corner of the Xcode window. The comparison view highlights changes between the current source code and the most recent commit.

How do I see Xcode history?

Click and hold on the Version Editor button and select Log. You can also choose View\Version Editor\Show Log View from the menu. Xcode will list the commits that contain changes to the current file.


1 Answers

Unfortunately the SCM functionality in 4.0 is fairly limited. You can commit, switch branches, branch/merge, diff previous versions, update to HEAD, but you can't revert.

We all expect this to get better in successive updates but it does seem like a rather silly omission. The Time-Machine-like diff version picker seems the perfect place to put the UI, so I'd expect it to appear there when it's finally supported.

like image 191
Joshua Nozzi Avatar answered Sep 27 '22 19:09

Joshua Nozzi