|
|
@ -182,15 +182,15 @@ class Push extends TextBuiltin { |
|
|
|
switch (rru.getStatus()) { |
|
|
|
switch (rru.getStatus()) { |
|
|
|
case OK: |
|
|
|
case OK: |
|
|
|
if (rru.isDelete()) |
|
|
|
if (rru.isDelete()) |
|
|
|
printUpdateLine('-', "[deleted]", null, remoteName, null); |
|
|
|
printUpdateLine('-', "[deleted]", null, remoteName, null); //$NON-NLS-1$
|
|
|
|
else { |
|
|
|
else { |
|
|
|
final Ref oldRef = result.getAdvertisedRef(remoteName); |
|
|
|
final Ref oldRef = result.getAdvertisedRef(remoteName); |
|
|
|
if (oldRef == null) { |
|
|
|
if (oldRef == null) { |
|
|
|
final String summary; |
|
|
|
final String summary; |
|
|
|
if (remoteName.startsWith(Constants.R_TAGS)) |
|
|
|
if (remoteName.startsWith(Constants.R_TAGS)) |
|
|
|
summary = "[new tag]"; |
|
|
|
summary = "[new tag]"; //$NON-NLS-1$
|
|
|
|
else |
|
|
|
else |
|
|
|
summary = "[new branch]"; |
|
|
|
summary = "[new branch]"; //$NON-NLS-1$
|
|
|
|
printUpdateLine('*', summary, srcRef, remoteName, null); |
|
|
|
printUpdateLine('*', summary, srcRef, remoteName, null); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
boolean fastForward = rru.isFastForward(); |
|
|
|
boolean fastForward = rru.isFastForward(); |
|
|
@ -206,16 +206,16 @@ class Push extends TextBuiltin { |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case NON_EXISTING: |
|
|
|
case NON_EXISTING: |
|
|
|
printUpdateLine('X', "[no match]", null, remoteName, null); |
|
|
|
printUpdateLine('X', "[no match]", null, remoteName, null); //$NON-NLS-1$
|
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case REJECTED_NODELETE: |
|
|
|
case REJECTED_NODELETE: |
|
|
|
printUpdateLine('!', "[rejected]", null, remoteName, |
|
|
|
printUpdateLine('!', "[rejected]", null, remoteName, //$NON-NLS-1$
|
|
|
|
CLIText.get().remoteSideDoesNotSupportDeletingRefs); |
|
|
|
CLIText.get().remoteSideDoesNotSupportDeletingRefs); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case REJECTED_NONFASTFORWARD: |
|
|
|
case REJECTED_NONFASTFORWARD: |
|
|
|
printUpdateLine('!', "[rejected]", srcRef, remoteName, |
|
|
|
printUpdateLine('!', "[rejected]", srcRef, remoteName, //$NON-NLS-1$
|
|
|
|
CLIText.get().nonFastForward); |
|
|
|
CLIText.get().nonFastForward); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
@ -223,22 +223,22 @@ class Push extends TextBuiltin { |
|
|
|
final String message = MessageFormat.format( |
|
|
|
final String message = MessageFormat.format( |
|
|
|
CLIText.get().remoteRefObjectChangedIsNotExpectedOne, |
|
|
|
CLIText.get().remoteRefObjectChangedIsNotExpectedOne, |
|
|
|
safeAbbreviate(reader, rru.getExpectedOldObjectId())); |
|
|
|
safeAbbreviate(reader, rru.getExpectedOldObjectId())); |
|
|
|
printUpdateLine('!', "[rejected]", srcRef, remoteName, message); |
|
|
|
printUpdateLine('!', "[rejected]", srcRef, remoteName, message); //$NON-NLS-1$
|
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case REJECTED_OTHER_REASON: |
|
|
|
case REJECTED_OTHER_REASON: |
|
|
|
printUpdateLine('!', "[remote rejected]", srcRef, remoteName, rru |
|
|
|
printUpdateLine('!', "[remote rejected]", srcRef, remoteName, rru //$NON-NLS-1$
|
|
|
|
.getMessage()); |
|
|
|
.getMessage()); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case UP_TO_DATE: |
|
|
|
case UP_TO_DATE: |
|
|
|
if (verbose) |
|
|
|
if (verbose) |
|
|
|
printUpdateLine('=', "[up to date]", srcRef, remoteName, null); |
|
|
|
printUpdateLine('=', "[up to date]", srcRef, remoteName, null); //$NON-NLS-1$
|
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case NOT_ATTEMPTED: |
|
|
|
case NOT_ATTEMPTED: |
|
|
|
case AWAITING_REPORT: |
|
|
|
case AWAITING_REPORT: |
|
|
|
printUpdateLine('?', "[unexpected push-process behavior]", srcRef, |
|
|
|
printUpdateLine('?', "[unexpected push-process behavior]", srcRef, //$NON-NLS-1$
|
|
|
|
remoteName, rru.getMessage()); |
|
|
|
remoteName, rru.getMessage()); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|