Monday 7 September 2015

ERROR: The provided repository type was not detected in the current directory.

When creating diff using 'rbt post' for review board with perforce client, reported issue occurs as below. This can be solved by verifying the client root in p4client and the path from where the rbt post command issued must be the same.
 


C:\Users\demouser>rbt post -d --repository-type perforce

>>> RBTools 0.7.4

>>> Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]

>>> Running on Windows-7-6.-SP1

>>> Home = C:\Users\demouser\AppData\Roaming

>>> Current directory = C:\Users\demouser

>>> Checking for a Perforce repository...

>>> Running: p4 info

ERROR: The provided repository type was not detected in the current directory.


 C:\Users\demouser>


Client root in p4 client should be the same as current directory