Esempio n. 1
0
 public override string ToString()
 {
     return("RemoteRefUpdate[remoteName=" + RemoteName + ", " + Status
            + ", " + (ExpectedOldObjectId != null ? ExpectedOldObjectId.Abbreviate(_localDb).name() : "(null)")
            + "..." + (NewObjectId != null ? NewObjectId.Abbreviate(_localDb).name() : "(null)")
            + (FastForward ? ", fastForward" : string.Empty)
            + ", srcRef=" + SourceRef + (ForceUpdate ? ", forceUpdate" : string.Empty) + ", message=" +
            (Message != null
                 ? "\""
             + Message + "\""
                 : "null") + ", " + _localDb.Directory + "]");
 }
 public override string ToString(BotElement bot, Func <string, string> transform)
 {
     return(String.Format("{0} {1} {2} {3}",
                          transform(String.Concat(RefNames)), bot.Text.RefPointer, transform(ObjectType.ToString()), transform(NewObjectId.ToHexString())));
 }
Esempio n. 3
0
 public override string ToString(BotElement bot, TextElement text, Func <string, string> transform)
 {
     return(String.Format("{0} {1} {2} {3}", Refs.ToString(text, transform), text.RefPointer, transform(ObjectType.ToString()), transform(NewObjectId.ToHexString())));
 }