<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -80,7 +80,7 @@ private
   # Execute a P4 command, and return an array of the resulting output lines
   # The array will contain a hash for each line out output
   def p4(operation, options = nil)
-    p4cmd = &quot;p4 -R -p #{@port} -c #{@clientspec} -u #{@username} -P #{@password} &quot;
+    p4cmd = &quot;p4 -R -p #{@port} -c #{@clientspec} -u #{@username} &quot; + password_args
     p4cmd &lt;&lt; &quot;#{operation.to_s}&quot;
     p4cmd &lt;&lt; &quot; &quot; &lt;&lt; options if options
     
@@ -95,6 +95,10 @@ private
     p4_output
   end
   
+  def password_args
+    (@password.blank?) ? &quot;&quot; : &quot;-P #{@password} &quot;
+  end
+  
   def info
     change1 = p4(:changes, &quot;-m 1 #{@p4path}#have&quot;).first
     change2 = p4(:changes, &quot;-m 1 #{@p4path}#head&quot;).first</diff>
      <filename>perforce.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0e36ef595795141f2d20c87058783d0d00bb7698</id>
    </parent>
  </parents>
  <author>
    <name>Ben Curren</name>
    <email>ben@esomnie.com</email>
  </author>
  <url>http://github.com/bcurren/cruisecontrolrb_perforce/commit/46d71ba537888b270e5c8eb8e79b9114533766d1</url>
  <id>46d71ba537888b270e5c8eb8e79b9114533766d1</id>
  <committed-date>2008-12-18T12:48:56-08:00</committed-date>
  <authored-date>2008-12-18T12:48:56-08:00</authored-date>
  <message>Thanks kwerle for the patch. Support no password for perforce.</message>
  <tree>3507225321366073553132810ada9f49afe5ce5e</tree>
  <committer>
    <name>Ben Curren</name>
    <email>ben@esomnie.com</email>
  </committer>
</commit>
