forall: Silently skip missing projects

If a project is missing locally, it might be OK to skip over it
and continue running the same command in other projects.

Bug: REPO-43
Change-Id: I64f97eb315f379ab2c51fc53d24ed340b3d09250
Signed-off-by: Shawn O. Pearce <sop@google.com>
(cherry picked from commit d4cd69bdef)
This commit is contained in:
Shawn O. Pearce 2009-08-22 18:50:45 -07:00
parent de8b2c4276
commit 1b5a4a0c5d

View File

@ -169,6 +169,12 @@ terminal and are not redirected.
else: else:
cwd = project.worktree cwd = project.worktree
if not os.path.exists(cwd):
if (opt.project_header and opt.verbose) \
or not opt.project_header:
print >>sys.stderr, 'skipping %s/' % project.relpath
continue
if opt.project_header: if opt.project_header:
stdin = subprocess.PIPE stdin = subprocess.PIPE
stdout = subprocess.PIPE stdout = subprocess.PIPE