如何在我的 Xcode 项目中查看整个 SCM 历史记录?
如果我查看项目信息中的 SCM 选项卡,我只会看到影响项目文件的提交。我在哪里可以获得整个项目的所有提交的列表?
If I look at the SCM tab in Get Info for my project I only see the commits that affected the project file. Where can I get a list of all the commits for the entire project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Xcode 4:转到 Organizer(右上角)、Repositories,选择存储库,就在那里。
Xcode 4: go to Organizer (top right), Repositories, choose repository, there it is.
在 Xcode 5 中你可以选择 View >导航器>日志。从这里,您可以在左侧窗格中查看每个更新和提交,了解自打开项目以来发生的操作。
对于一般历史记录,请选择“源代码控制”>“历史…这将显示与 Xcode 4 管理器中类似的内容。
In Xcode 5 you can choose View > Navigators > Log. From here you can see each of your Updates and Commits in the left pane for actions that have happened since opening the project.
For a general history choose Source Control > History… This will bring up something similar that what Xcode 4 had in the organizer.
当我从 XCode 4.02 查看管理器中的“存储库”选项卡时,查看整个 SCM 历史记录(本例中为 Subversion)时遇到类似的问题,我只能在“历史记录”窗格中看到所选文件夹的修订,而子目录中的修订则看不到被显示。
为了查看完整的历史记录(即项目上“svn log”的视觉等效项),您需要为项目选择存储库根(紫色图标)或分支(黄色图标)。
选择这些图标中的任何一个后,历史记录窗格现在应该显示所有修订,包括子目录的修订,如果在左侧窗格中选择工作副本(蓝色图标),则不会显示子目录的修订。
I was having a similar problem viewing the entire SCM history (Subversion in this case) when viewing the Repositories tab in the Organizer from XCode 4.02 where I could only see revisions for the selected folder in the History pane, and revisions from sub directories would not be shown.
In order to see the full history (i.e. the visual equivalent of 'svn log' on the project) you need to select either the Repository Root (purple icon) or a Branch (yellow icons) for your project.
After selecting either of these icons the history pane should now show all revisions, including revisions to sub directories, which would not otherwise be shown if a Working Copy (blue icon) is selected in the left hand pane.