diff options
| author | Shawn O. Pearce <sop@google.com> | 2009-06-04 20:41:02 -0700 |
|---|---|---|
| committer | Shawn O. Pearce <sop@google.com> | 2009-06-04 20:41:26 -0700 |
| commit | 9fb29ce123ad26bf1497144a40e337aff8c51ecb (patch) | |
| tree | f23b28c647529b40532f2e5bb7a39c7b3af7ec81 | |
| parent | 3a68bb4c7f50897c0dbca59ca47aef463a9ad8d0 (diff) | |
| download | git-repo-9fb29ce123ad26bf1497144a40e337aff8c51ecb.tar.gz | |
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>
| -rw-r--r-- | subcmds/sync.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 | |||
| 166 | break | 166 | break |
| 167 | dir = os.path.dirname(dir) | 167 | dir = os.path.dirname(dir) |
| 168 | 168 | ||
| 169 | new_project_paths.sort() | ||
| 169 | fd = open(file_path, 'w') | 170 | fd = open(file_path, 'w') |
| 170 | try: | 171 | try: |
| 171 | fd.write('\n'.join(new_project_paths)) | 172 | fd.write('\n'.join(new_project_paths)) |
