|
1 | 1 | import { readFileSync } from 'fs'; |
2 | | -import { detectNonCommutative } from 'src/utils/commutativity'; |
3 | 2 | import type { Dialect } from '../../utils/schemaValidator'; |
4 | 3 | import { prepareOutFolder, validatorForDialect } from '../../utils/utils-node'; |
5 | 4 | import { info } from '../views'; |
@@ -36,18 +35,18 @@ export const checkHandler = async (out: string, dialect: Dialect) => { |
36 | 35 | } |
37 | 36 | } |
38 | 37 |
|
39 | | - try { |
40 | | - const response = await detectNonCommutative(snapshots, dialect); |
41 | | - if (response!.conflicts.length > 0) { |
42 | | - console.log('\nNon-commutative migration branches detected:'); |
43 | | - for (const c of response!.conflicts) { |
44 | | - console.log(`- Parent ${c.parentId}${c.parentPath ? ` (${c.parentPath})` : ''}`); |
45 | | - console.log(` A: ${c.branchA.headId} (${c.branchA.path})`); |
46 | | - console.log(` B: ${c.branchB.headId} (${c.branchB.path})`); |
47 | | - // for (const r of c.reasons) console.log(` • ${r}`); |
48 | | - } |
49 | | - } |
50 | | - } catch (e) { |
51 | | - console.error(e); |
52 | | - } |
| 38 | + // try { |
| 39 | + // const response = await detectNonCommutative(snapshots, dialect); |
| 40 | + // if (response!.conflicts.length > 0) { |
| 41 | + // console.log('\nNon-commutative migration branches detected:'); |
| 42 | + // for (const c of response!.conflicts) { |
| 43 | + // console.log(`- Parent ${c.parentId}${c.parentPath ? ` (${c.parentPath})` : ''}`); |
| 44 | + // console.log(` A: ${c.branchA.headId} (${c.branchA.path})`); |
| 45 | + // console.log(` B: ${c.branchB.headId} (${c.branchB.path})`); |
| 46 | + // // for (const r of c.reasons) console.log(` • ${r}`); |
| 47 | + // } |
| 48 | + // } |
| 49 | + // } catch (e) { |
| 50 | + // console.error(e); |
| 51 | + // } |
53 | 52 | }; |
0 commit comments