Explorar o código

sync: Keep the project.list file sorted

Its easier to locate an entry visually if the file is sorted.

Signed-off-by: Shawn O. Pearce <sop@google.com>
Shawn O. Pearce %!s(int64=16) %!d(string=hai) anos
pai
achega
9fb29ce123
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      subcmds/sync.py

+ 1 - 0
subcmds/sync.py

@@ -166,6 +166,7 @@ uncommitted changes are present' % project.relpath
                 break
               dir = os.path.dirname(dir)
 
+    new_project_paths.sort()
     fd = open(file_path, 'w')
     try:
       fd.write('\n'.join(new_project_paths))