findchange.sh #12

  • //
  • guest/
  • adam_morriss/
  • scripts/
  • findchange.sh
  • Commits
# Change User Description Committed
#12 24203 Adam Morriss Moving files to 'amo'
#11 18663 Adam Morriss Swapped 'echo' for 'printf', added check for valid status
some restructuring (fewer lines used than before)
#10 18658 Adam Morriss Additional error checking and comments in code
#9 18588 Adam Morriss removed unused message
#8 18558 Adam Morriss correcting mistyped keyword
#7 18557 Adam Morriss added quotes to the grep command allowing handling of patterns containing spaces.
#6 18556 Adam Morriss Removed case statement.
This changed the underlying 'changes' command, ignoring the depot path for pending changes or those containing shelved files. Not required (at least not that I've noticed so far).
There is a difference with 'p4 changes' commands when no status is provided - possibly what I was thinking of when I added this piece in the first place.
#5 18554 Adam Morriss changing filetype to add keywords
#4 18553 Adam Morriss Adding comment to explain purpose.
#3 18552 Adam Morriss update to findchange script for searching change descriptions
#2 18549 Adam Morriss Potential fix evaluating command.
#1 18478 Adam Morriss A couple of bash scripts to carry out basic checks.

Both are functional, though need further checks and measures, and neither have been tested to destruction.

'working-autolabel' attempts to produce a list of automatic labels corresponding to a (currently hard-coded) depot path.
'findchange' searches the description of changes related to a specified path for a provided string, and lists the change number for those that match. This needs further error checking, and the ability to search pending changes (which won't work if you provide a path). Would be good to check that the depot path exists too.