Jump to content


p4bill

Member Since 06 Sep 2011
Offline Last Active Dec 18 2018 08:31 PM
-----

Posts I've Made

In Topic: P4VS NuGet support

18 December 2018 - 08:35 PM

This is implemented in 2018.4:
	 #1717269 (Bug #66552, 59357)
		 P4VS now implements some of EnvDTE.SourceControl. Other
		 Visual Studio tools can now call IsItemUnderSCC,
		 IsItemCheckedOut, and CheckOutItem. This will enable files
		 like packages.config to be checked out when they are being
		 edited by NuGet package manager.

In Topic: P4VS not checking out files on save

18 December 2018 - 08:32 PM

The option has been implemented in the 2018.4 release:
	 #1697525 (Bug #96251, 95917)
		 There is now an option to Check out writable files on save
		 which can be set in Tools -> Options -> Source Control ->
		 Helix Core - General -> Files and folders.

In Topic: Need to "Get latest Revision" through C#

12 November 2018 - 08:43 PM

Repository.GetDepotDirs
should do what you want.

There are 2 overloads. You can see some examples if you expand them in the online help:

https://www.perforce...etDepotDirs.htm

In Topic: Need to "Get latest Revision" through C#

09 November 2018 - 10:35 PM

Are you using Helix Core API for .NET?
https://www.perforce...ix-core-api-net

If yes, after establishing a connection:

string depotPath = "//test_depot/test/...";
FileSpec dirToSync = new FileSpec(new DepotPath(depotPath), null);
IList<FileSpec> syncedFiles =connection.Client.SyncFiles(null, dirToSync );

the null in the SyncFiles command is in place of any sync options you may want to use.

In Topic: Problem retrieving MetaData for a large number of files

06 November 2018 - 04:59 PM

No, there is no other way to iterate through the files. Switching to 64-bit, or doing what you also suggested earlier (getting directories) are likely your only options here.

P4API.NET is using P4API in the bridge, which is also used by P4 CLI. I'd be curious if you are able to get all of the data returned from a command line equivalent p4 -ztag fstat //MyStream/MyRoot/... If you do, there might be something that could be changed in P4API.NET to handle larger repositories better.