Inheritance: RemoteCommandVerbOptions
Example #1
0
        protected override bool RunInternal(IRemoteClient client, RemoteCommandVerbOptions options)
        {
            PushVerbOptions localOptions = options as PushVerbOptions;

            if (!client.Push(localOptions.Branch))
            {
                return(false);
            }

            if (client.RequestUpdate)
            {
                Printer.PrintMessage("Server has remotely merged the current branch.");
                if (Printer.Prompt("Update?"))
                {
                    client.Close();
                    client = client.Workspace.Connect(URL, false);
                    if (!client.Pull(true, null, false))
                    {
                        return(false);
                    }
                    client.Workspace.Update(new Area.MergeSpecialOptions());
                }
            }
            return(true);
        }
Example #2
0
        protected override bool RunInternal(IRemoteClient client, RemoteCommandVerbOptions options)
        {
            PushVerbOptions localOptions = options as PushVerbOptions;

            return(client.PushRecords());
        }