on master help sign in
switch transaction graph display to use BoolAtom instead of IntAtom
commita1fd20e5c1b3f2b4df04b84d5e0947e9efb8e3cd authorAgentM <agentm@themactionfaction.com> dateSat 25 Jul 2015, 15:30 (11 years ago) parentb9625fb
2 files changed+5−5
ProjectM36/TransactionGraph.hs+2−2 README.markdown+3−3
ProjectM36/TransactionGraph.hs+2−2
@@ -219,7 +219,7 @@ graphAsRelation (DisconnectedTransaction parentUUID _) graph@(TransactionGraph _
219219 where
220220 attrs = A.attributesFromList [Attribute "id" StringAtomType,
221221 Attribute "parents" (RelationAtomType parentAttributes),
222− Attribute "current" IntAtomType,
222+ Attribute "current" BoolAtomType,
223223 Attribute "head" StringAtomType
224224 ]
225225 parentAttributes = A.attributesFromList [Attribute "id" StringAtomType]
@@ -227,7 +227,7 @@ graphAsRelation (DisconnectedTransaction parentUUID _) graph@(TransactionGraph _
227227 Left err -> Left err
228228 Right parentTransRel -> Right [StringAtom $ T.pack $ show (transactionUUID transaction),
229229 RelationAtom parentTransRel,
230− IntAtom $ if parentUUID == transactionUUID transaction then 1 else 0,
230+ BoolAtom $ parentUUID == transactionUUID transaction,
231231 StringAtom $ case headNameForTransaction transaction graph of
232232 Just headName -> headName
233233 Nothing -> ""
README.markdown+3−3
@@ -93,7 +93,7 @@ TutorialD (master): :branch devel
9393Done.
9494```
9595
96−which creates a new head named "devel" in the transaction graph and resets the current "disconnected" transaction to refer to the
96+which creates a new head named "devel" in the transaction graph and resets the current "disconnected" transaction to refer to the new branch.
9797
9898 ```
9999TutorialD (devel): :rollback
@@ -107,12 +107,12 @@ TutorialD (devel): :showGraph
107107┌───────┬────────────────────────────────────┬──────────────────────────────────────┐
108108│current│id │parents │
109109├───────┼────────────────────────────────────┼──────────────────────────────────────┤
110−│1 │1d064d54-cd2a-4a43-822a-cbd18cf7c4e8│┌────────────────────────────────────┐│
110+│True │1d064d54-cd2a-4a43-822a-cbd18cf7c4e8│┌────────────────────────────────────┐│
111111│ │ ││id ││
112112│ │ │├────────────────────────────────────┤│
113113│ │ ││4a4ee715-297d-49db-bfd1-afaefadc902b││
114114│ │ │└────────────────────────────────────┘│
115−│0 │4a4ee715-297d-49db-bfd1-afaefadc902b│┌──┐ │
115+│False │4a4ee715-297d-49db-bfd1-afaefadc902b│┌──┐ │
116116│ │ ││id│ │
117117│ │ │ │
118118│ │ │└──┘ │