Inheritance: RemoteCommandVerbOptions
Exemple #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);
        }
Exemple #2
0
        protected override bool RunInternal(IRemoteClient client, RemoteCommandVerbOptions options)
        {
            PushVerbOptions localOptions = options as PushVerbOptions;

            return(client.PushRecords());
        }