Advertisement
Guest User

Untitled

a guest
Sep 29th, 2012
1,456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. # CheckOutActive - Check the active window out for modification
  2. #
  3. # Usage: Called by a user­defined menu item
  4. #
  5. # CheckOutActive uses the ProjectInfo command to determine the
  6. # parent project for the file open as the Active window. Once this
  7. # project has been determined, the file open as the Active window
  8. # can be properly checked out.
  9. #
  10. # © Apple Computer, Inc. 1988
  11. # All rights reserved.
  12.  
  13. End
  14.  
  15. # Request a comment before we check the file out. It is still possible
  16. # that the checkout will fail because the lastest revision on the trunk
  17. # is already checked out for modification by someone else.
  18.  
  19. (Set comment "`Request -d "{Task}" "What changes will you make?" || Set error {Status}`")
  20. If {error} == 0
  21. Evaluate "{®3}" =~ /(,([0-9.]+[a-z]*)*)®4[0-9.]+/ # {®4} contains the branch
  22. If "{comment}" ‚ ""
  23. Checkout -t "{comment}" -c -m -project "{®2}" "{Active}{®4}"
  24. Else
  25. Checkout -c -m -project "{®2}" "{Active}{®4}"
  26. End
  27. If {Status} ‚ 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement