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?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With