post-review for P4win
Submitted
Updated 4 weeks, 1 day ago
| JSlominski | Reviewers | ||
| reviewboard | |||
| None | Review Board SVN | ||
I have updated post-review to set the proper perforce environment. Before P4Tool.txt is imported into P4win, the user needs to enter the path of post-review. After it is imported they should be able to right click on any change list and by clicking post-review, post a review of the change list in perforce.
Posted 3 months, 3 weeks ago (July 25th, 2008, 2:04 p.m.)
Given that this is a tool that needs to be compiled, it'd be nice to make this its own top-level module in /trunk and add a Makefile for compiling it. Also, is there any reason we need a wrapper? The script can't just run python post-review or maybe a compiled post-review.exe?
-
/trunk/reviewboard/contrib/tools/P4post-review.cpp (Diff revision 1) 81 sprintf(command,"set P4CLIENT=%s", argv[2]); //set Perforce ENV
-
You can use setenv for this.
-
/trunk/reviewboard/contrib/tools/post-review (Diff revision 1) 1561 -
This line can go.
Posted 2 months ago (September 18th, 2008, 1:22 a.m.)
-
/trunk/reviewboard/contrib/tools/post-review (Diff revision 3) 807 if options.p4Client != None:
-
You don't need "!= None" here.
-
/trunk/reviewboard/contrib/tools/post-review (Diff revision 3) 1497 if type(tool) == PerforceClient:
-
You should be using isinstance() here.
-
/trunk/reviewboard/contrib/tools/post-review (Diff revision 3) 1498 parser.add_option("--P4Client", -
I'd prefer --p4-client and --p4-port. The variable names should be p4_client and p4_port too.
-
/trunk/reviewboard/contrib/tools/post-review (Diff revision 3) 1500 help="the Perforce client spec name that the CL is in")
-
I'd rather we not abbreviate "CL". This is more generic than changelists, so let's just say something like "the Perforce client name" and "the Perforce server address" or something.
Thanks, committed as r1550. I don't use Windows and therefore don't use P4win, so I can't test this, but what happens if you need to log in? Does P4win provide any sort of a terminal UI where you can input this information, and does it show the resulting URL? We may want to modify this to use -o (for opening a web browser) after this is posted.