From 9fb29ce123ad26bf1497144a40e337aff8c51ecb Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Thu, 4 Jun 2009 20:41:02 -0700 Subject: [PATCH] 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 --- subcmds/sync.py | 1 + 1 file changed, 1 insertion(+) diff --git a/subcmds/sync.py b/subcmds/sync.py index 6bccbb03..bd07dd9f 100644 --- a/subcmds/sync.py +++ b/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))