Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Unified Diff: tools/xcodebodge/xcodebodge.py

Issue 18719: Sort file refs and build refs by UUID so Xcode doesn't resort them on... Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/xcodebodge/xcodebodge.py
===================================================================
--- tools/xcodebodge/xcodebodge.py (revision 8565)
+++ tools/xcodebodge/xcodebodge.py (working copy)
@@ -552,7 +552,9 @@
i += 1
parent_group.child_names.insert(i, new_file_ref.name)
parent_group.child_uuids.insert(i, new_file_ref.uuid)
+ # Add file ref uuid sorted
self._sections['PBXFileReference'].append(new_file_ref)
+ self._sections['PBXFileReference'].sort(cmp=lambda x,y: cmp(x.uuid, y.uuid))
sgk 2009/01/26 18:53:01 Nit: 80 chars.
return new_file_ref
# Group-relative failed, how about SOURCE_ROOT relative in the main group
@@ -568,7 +570,9 @@
None)
self._root_group.child_uuids.append(new_file_ref.uuid)
self._root_group.child_names.append(new_file_ref.name)
+ # Add file ref uuid sorted
self._sections['PBXFileReference'].append(new_file_ref)
+ self._sections['PBXFileReference'].sort(cmp=lambda x,y: cmp(x.uuid, y.uuid))
sgk 2009/01/26 18:53:01 Nit: 80 chars.
return new_file_ref
# Win to Unix absolute paths probably not practical
@@ -595,7 +599,9 @@
'Sources',
source_ref.uuid,
'')
+ # Add to build file list (uuid sorted)
self._sections['PBXBuildFile'].append(new_build_file)
+ self._sections['PBXBuildFile'].sort(cmp=lambda x,y: cmp(x.uuid, y.uuid))
# Add to sources phase list (name sorted)
i = 0
while i < len(source_phase.file_names):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698