Index: /trunk/reviewboard/contrib/tools/P4Tool.txt
===================================================================
--- /trunk/reviewboard/contrib/tools/P4Tool.txt	(revision 0)
+++ /trunk/reviewboard/contrib/tools/P4Tool.txt	(revision 0)
@@ -0,0 +1,2 @@
+P4Win Tools for Review Board
+>>post-review	python	"<Path of post-review goes here>" %C --p4-client $c --p4-port $p		1	0	1	0	0	1	0		0
Index: /trunk/reviewboard/contrib/tools/post-review
===================================================================
--- /trunk/reviewboard/contrib/tools/post-review	(revision 1457)
+++ /trunk/reviewboard/contrib/tools/post-review	(working copy)
@@ -803,8 +803,17 @@
 
         debug("Generating diff for changenum %s" % changenum)
 
+        # set the P4 enviroment:
+        if options.p4_client:
+           os.environ['P4CLIENT'] = options.p4_client
+
+        if options.p4_port:
+           os.environ['P4PORT'] = options.p4_port
+
+
         description = execute(["p4", "describe", "-s", str(changenum)],
                               split_lines=True)
+
         if '*pending*' in description[0]:
             cl_is_pending = True
 
@@ -1485,6 +1494,15 @@
 
         tool.add_options(parser)
 
+    if isinstance(tool,PerforceClient):
+       parser.add_option("--p4-client",
+                         dest="p4_client", default=None,
+                         help="the Perforce client name that the review is in")
+
+       parser.add_option("--p4-port",
+                         dest="p4_port", default=None,
+                         help="the Perforce servers IP address that the review is on")
+
 
     parser.add_option("-d", "--debug",
                       action="store_true", dest="debug", default=DEBUG,
