Change 14548

tony
tony committed this change into //guest/perforce_software/p4ruby/main
Request Review
Download .zip
Add new P4#tagged() method, that takes a bool, and a block.
It sets/clears
tagged output (as specified by the boolean), and runs the block. It then
resets the tagged output to its previous value. For example

   p4.tagged( false ) { ctr = p4.run_counter( 'change' ).to_i }

This is in fact the best use-case, since getting a counter value is
harder in tagged mode than in non-tagged mode. Most users
will not need this method.

User-visible enhancement documented in p4rubynotes.txt
  • Files 1
  • Comments 0
1 edited 0 added 0 deleted
p4.cpp#25
Loading...
Tip: Use n and p to cycle through the changes.