Enhance debug-show-dir-cache command to show stage

Change-Id: I6fb17ec7f04f8bfaf1253b2ff08200ef9fc51898
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2011-03-03 10:56:38 +01:00
parent a468cb57c2
commit 3de0df93d4
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@
* Copyright (C) 2008, Google Inc.
* Copyright (C) 2008, Jonas Fonseca <fonseca@diku.dk>
* Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
* Copyright (C) 2011, Matthias Sohn <matthias.sohn@sap.com>
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
@ -65,6 +66,7 @@ protected void run() throws Exception {
final FileMode mode = FileMode.fromBits(ent.getRawMode());
final int len = ent.getLength();
final Date mtime = new Date(ent.getLastModified());
final int stage = ent.getStage();
out.print(mode);
out.format(" %6d", len);
@ -72,6 +74,8 @@ protected void run() throws Exception {
out.print(fmt.format(mtime));
out.print(' ');
out.print(ent.getObjectId().name());
out.print(' ');
out.print(stage);
out.print('\t');
out.print(ent.getPathString());
out.println();