Description: rbt can only post from client root when using perforce
post-review and rbt don't detect that you are in a perforce client
correctly due to incorrect use of os.path.pathsep
---
Bug: https://code.google.com/p/reviewboard/issues/detail?id=3218
Forwarded: no
Reviewed-By: erik.lattimore@sonos.com
Last-Update: 2014-02-03
--- rbtools-0.5.6.orig/rbtools/clients/perforce.py
+++ rbtools-0.5.6/rbtools/clients/perforce.py
@@ -174,8 +174,8 @@ class PerforceClient(SCMClient):
if client_root is None:
return None
- norm_cwd = os.path.realpath(os.getcwd()) + os.path.pathsep
- norm_client_root = os.path.realpath(client_root) + os.path.pathsep
+ norm_cwd = os.path.realpath(os.getcwd()) + os.path.sep
+ norm_client_root = os.path.realpath(client_root) + os.path.sep
# Don't accept the repository if the current directory is outside the
# root of the Perforce client.