Add BatchRefUpdate#toString()
Change-Id: I58c342a91911763055c1073d2f426340fbf94fa4
This commit is contained in:
parent
94ebdbfada
commit
23ad3a3763
|
@ -394,4 +394,20 @@ protected RefUpdate newUpdate(ReceiveCommand cmd) throws IOException {
|
|||
return ru;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder r = new StringBuilder();
|
||||
r.append(getClass().getSimpleName()).append('[');
|
||||
if (commands.isEmpty())
|
||||
return r.append(']').toString();
|
||||
|
||||
r.append('\n');
|
||||
for (ReceiveCommand cmd : commands) {
|
||||
r.append(" "); //$NON-NLS-1$
|
||||
r.append(cmd);
|
||||
r.append(" (").append(cmd.getResult()).append(")\n"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
return r.append(']').toString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue