GetStatusText() public static method

public static GetStatusText ( Versionr x ) : string>.Tuple
x Versionr
return string>.Tuple
Beispiel #1
0
        public static void UnrecordFeedback(Versionr.Status.StatusEntry entry, StatusCode code)
        {
            var    previous = Status.GetStatusText(entry);
            var    now      = Status.GetStatusText(code, false, entry.VersionControlRecord != null);
            string output   = "(#" + previous.Item1 + "#" + previous.Item2 + "## => #" + now.Item1 + "#" + now.Item2 + "##)#b# ";

            while (output.Length < 36)
            {
                output = " " + output;
            }
            Printer.PrintMessage(output + entry.CanonicalName);
        }
Beispiel #2
0
        protected void RecordFeedback(Versionr.Status.StatusEntry entry, StatusCode code, bool auto)
        {
            string name  = Workspace.GetLocalCanonicalName(entry.CanonicalName);
            int    index = name.LastIndexOf('/');

            if (index != name.Length - 1)
            {
                name = name.Insert(index + 1, "#b#");
            }
            var    previous = Status.GetStatusText(entry);
            var    now      = Status.GetStatusText(code, true, entry.VersionControlRecord != null);
            string output   = "#" + now.Item1 + "#(" + now.Item2 + ")## ";

            while (output.Length < 20)
            {
                output = " " + output;
            }
            Printer.PrintMessage(output + " " + name + "##" + (auto ? " #q#(auto)##" : ""));
        }