How to set file labels in p4merge
When p4merge is invoked from p4v it displays depot paths as labels on the files. I would like to use p4merge as a diff viewer for SVN, and to that end I have this batch file:
@echo off
pau开发者_运维知识库se
p4merge %6 %7
This works, but the labels appearing on the left and right panels are the names of the temporary files SVN has created to feed to p4merge. Arguments %3 and %5 that SVN passes to the batch file contain appropriate labels for the left and right panels respectively. I am sure I remember there being command-line arguments to set what labels you want to appear on each of the panels, but they are not listed by p4merge -h
. What are they?
It looks like the options I was looking for are -nl NAME
to name the left pane and -nr NAME
to name the right pane. So my batch file is now:
@echo off
pause
p4merge -nl %3 -nr %5 %6 %7
精彩评论