Hey Doug, This seems to be a long-standing Xcode bug.
I reported it nearly three years ago for Xcode 4.6 (13475784), and it was closed a few days later as a duplicate (8880197). About a year later, discovering it was still unresolved, I reported it again for Xcode 5.1 (16517487), but it was again closed a few days later as a duplicate (15090501). It perplexes me why nobody has seen fit to fix the problem. I concluded that few people at Apple actually use Xcode + git for revision control. cheers, -ben > On 12 Jan 2016, at 6:46 pm, Doug Hill <[email protected]> wrote: > > I’m going through source file revision history in the Xcode 7.2 Version > Editor. It shows the current git revision of a source file at the bottom of > the right source code pane. Clicking on this revision shows a popup of older > revisions. When I click on an item in the list, I can go back to a previous > revision and compare it with the current source file. > > Most of the time this works fine. However, sometimes selecting a previous > revision shows an error: > > The source controler operation failed because the revision “MyFile.m” could > not be found. > Make sure a valid revision exists in the repository and try again. > > Checking the file’s revision with git command line: > > git log <path to my file> > > and it shows only one revision, the first one listed in the Xcode revision > list. Hmmm…that’s funny, where are all the extra revisions coming from? > > Digging into git documentation, I see the following command-line switch for > the git log command: > > --follow > Continue listing the history of a file beyond renames (works only for a > single file). > > Ok, I use this switch with the log command and I see all revisions shown in > the Xcode revision list. > > So, can I conclude that the Xcode uses the —follow switch to populate the > revision list but the code to actually show the revision doesn’t use this > information? > > Doug Hill > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Xcode-users mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/xcode-users/ben%40zygoat.ca > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to [email protected]
