Git commits in Moodle 2.6.2 by sam marshall

commit f76c4edf013711a225abcd3ec14fc45042cf1a2a
Author: sam marshall <s.marshall@open.ac.uk>
Date:   Mon, 10 Feb 2014 20:33:35 +0800
Tag:    v2.6.2

MDL-44065 Course: _add_instance exception leads to inconsistent db

commit a6a14f2155a4ddcdd2a4f273e7e6baff34da502d
Author: sam marshall <s.marshall@open.ac.uk>
Date:   Tue, 14 Jan 2014 21:44:17 +0800
Tag:    v2.6.2

MDL-43619 Roles: reset_role_capabilities unit test, cache fix

commit bf2c42e8eecda043d371b7f3c6ca12cdd4601a23
Author: sam marshall <s.marshall@open.ac.uk>
Date:   Thu, 09 Jan 2014 01:11:10 +0800
Tag:    v2.6.2

MDL-43619 Roles: reset_role_capabilities function destroys overrides