Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions p4mono/P4Shell/P4Shell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,26 @@ public string[] Files( string wildcard ){


return files.ToArray();
}



}

public bool CopyFile(string localPath, string depotPath)
{
var result = false;
var stdout = String.Empty;
if (!loggedIn)
Login(username, password);
try
{
env.ExecuteThrow("p4", new string[] { "print", "-o", localPath, depotPath }, out stdout);
result = true;
}
catch (ApplicationException e)
{
Console.Error.WriteLine(e.Message);
}
return result;
}

public string[] Edit( string wildcard ){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indenting is a bit mixed up. Also this wont work so well if the line endings in the client are wrong

string stdout = String.Empty;
if ( !loggedIn )
Expand Down