From 3c8dea1f8d7c4257d080f9f34159cdb2fffb81e6 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Fri, 29 May 2009 18:38:17 -0700 Subject: Change project.revision to revisionExpr and revisionId The revisionExpr field now holds an expression from the manifest, such as "refs/heads/master", while revisionId holds the current commit-ish SHA-1 of the revisionExpr. Currently that is only filled in if the manifest points directly to a SHA-1. Signed-off-by: Shawn O. Pearce --- subcmds/forall.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'subcmds/forall.py') diff --git a/subcmds/forall.py b/subcmds/forall.py index 8d701a6c..b66313d7 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py @@ -160,10 +160,8 @@ terminal and are not redirected. setenv('REPO_PROJECT', project.name) setenv('REPO_PATH', project.relpath) setenv('REPO_REMOTE', project.remote.name) - setenv('REPO_LREV', project\ - .GetRemote(project.remote.name)\ - .ToLocal(project.revision)) - setenv('REPO_RREV', project.revision) + setenv('REPO_LREV', project.GetRevisionId()) + setenv('REPO_RREV', project.revisionExpr) if mirror: setenv('GIT_DIR', project.gitdir) -- cgit v1.2.3-54-g00ecf