From 5bca9fcdd9dfe4fd31fffe332579f982738b5997 Mon Sep 17 00:00:00 2001 From: Jorge Gonzalez Date: Mon, 3 Jun 2013 12:00:06 -0700 Subject: [PATCH] Print project name for -p on mirror clients It doesn't make sense to print the relpath, since there's nothing checked out there and the dir shouldn't even exist. Change-Id: Id43631a8e0895929d3a5ad4ca8c2dc9e3d233e70 --- subcmds/forall.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/subcmds/forall.py b/subcmds/forall.py index 7d5f7794..e2a420a9 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py @@ -260,7 +260,12 @@ without iterating through the remaining projects. first = False else: out.nl() - out.project('project %s/', project.relpath) + + if mirror: + project_header_path = project.name + else: + project_header_path = project.relpath + out.project('project %s/', project_header_path) out.nl() out.flush() if errbuf: