From 89e717d9481c0c69292a39f85599f5df8277b004 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Sat, 18 Apr 2009 15:04:41 -0700 Subject: 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 --- subcmds/start.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'subcmds/start.py') 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. pm.end() if err: - err.sort() for p in err: - print >>sys.stderr, "error: cannot start in %s" % p.relpath + print >>sys.stderr,\ + "error: %s/: cannot start %s" \ + % (p.relpath, nb) sys.exit(1) -- cgit v1.2.3-54-g00ecf