# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#8 | 14676 | tony |
Rework P4Ruby unit tests so they they are actually units. Now the test order is irrelevant as all tests are standalone. Tidied up the code formatting as well and removed all the tabs from the ruby sources files. Added a modeline for vim users so consistent indentation will be used. |
||
#7 | 14641 | jmistry |
pull unit test fix from p12.1 to main. Integration only change. |
||
#6 | 14640 | jmistry |
Pull changes from p12.1 to main. Integration only change. |
||
#5 | 14636 | jmistry |
Fix binary file resolve Accessing the base_name attribute of a P4::MergeData object resulted in a segmentation fault when resolving binary files. This is because the base file is empty for binary files, and the Name() method invoked on it does not protect itself in case of a NULL value. User visible change, to be documented in the release notes. |
||
#4 | 14633 | jmistry |
remove md.info[ 'clientFile' ] check Difficult to test the value of this on different platforms, so removing it for now. The remaining checks against P4::MergeData#info should be enough to ensure that it contains the correct information. |
||
#3 | 14629 | jmistry |
Implemented 'action resolve' in P4Ruby. This extends the existing P4MergeData class to support action resolve. Users will need to test the MergeData object passed to the block to determine if the resolve is for content (P4::MergeData#content_resolve?) or action (P4::MergeData#action_resolve?). The attributes available in 'P4::MergeDatamerge' for an action resolve are: merge_action : The action chosen for the merge, can be emtpy yours_action: your action/filetype their_action: their action/filetype type: the type of merge. Can be "Branch resolve", "Filetype resolve", "Delete resolve" "Filename resolve" info: a dictionary with additional information that can vary with the resolve type. Updated unit test to test action resolve. User visible change, to be documented in the release notes for 2012.1. |
||
#2 | 14628 | jmistry |
Quit resolve if there is an exception. Follow-on from change @410702, which raised exceptions up to the user from P4#run_resolve. Further testing showed that if multiple resolves are scheduled and an exception is raised, then subsequent resolves would clear that. We now check if an exception has been raised by an earlier resolve and return early if there has been. Unit test has been updated with this case. User visible change to be documented in release notes. |
||
#1 | 14625 | jmistry |
Add resolve test case Before beginning work on ActionResolve, let's add a unit test for content resolves. |