diff options
author | Shawn O. Pearce <sop@google.com> | 2009-04-18 15:04:41 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-04-18 15:04:41 -0700 |
commit | 89e717d9481c0c69292a39f85599f5df8277b004 (patch) | |
tree | 1fc613edd34eb349b673505b872be21a416ab52f /subcmds/start.py | |
parent | 0f0dfa3930bc16078ef0b1a00ff6849333038fc7 (diff) | |
download | git-repo-89e717d9481c0c69292a39f85599f5df8277b004.tar.gz |
Improve checkout performance for the common unmodified case
Most projects will have their branch heads matching in all branches,
so switching between them should be just a matter of updating the
work tree's HEAD symref. This can be done in pure Python, saving
quite a bit of time over forking 'git checkout'.
Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'subcmds/start.py')
-rw-r--r-- | subcmds/start.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/subcmds/start.py b/subcmds/start.py index 49bb0e1a..8c74625f 100644 --- a/subcmds/start.py +++ b/subcmds/start.py | |||
@@ -49,7 +49,8 @@ revision specified in the manifest. | |||
49 | pm.end() | 49 | pm.end() |
50 | 50 | ||
51 | if err: | 51 | if err: |
52 | err.sort() | ||
53 | for p in err: | 52 | for p in err: |
54 | print >>sys.stderr, "error: cannot start in %s" % p.relpath | 53 | print >>sys.stderr,\ |
54 | "error: %s/: cannot start %s" \ | ||
55 | % (p.relpath, nb) | ||
55 | sys.exit(1) | 56 | sys.exit(1) |