Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Now 'ac', 'ap', 'np' commit

  • Loading branch information...
commit 954d173bf2e609858098fce8f0a70bb1035c1f5d 1 parent 06b8f39
Bryan Kam authored

Showing 1 changed file with 10 additions and 3 deletions. Show diff stats Hide diff stats

  1. +10 3 todo.py
13 todo.py
@@ -947,7 +947,10 @@ def addChild(parent, text):
947 947 items.insert(parent + 1,text)
948 948
949 949 writeTaskList(items)
950   - if not quiet: print "%d got child: %s " % (parent, text)
  950 + msg = "%d got child: %s " % (parent, text)
  951 + if not quiet: print msg
  952 + commit(['todo.txt'],msg)
  953 +
951 954
952 955 def addParent(child, text):
953 956 """Give a task a parent task - and make it a child"""
@@ -969,7 +972,9 @@ def addParent(child, text):
969 972 items.insert(parent + 1, text)
970 973
971 974 writeTaskList(items)
972   - if not quiet: print "%d got parent: %s " % (child, text)
  975 + msg = "%d got parent: %s " % (child, text)
  976 + if not quiet: print msg
  977 + commit(['todo.txt'],msg)
973 978
974 979 def newParent(child, parent):
975 980 """Give a task to a parent task, make it a child"""
@@ -985,7 +990,9 @@ def newParent(child, parent):
985 990 else:
986 991 items.pop(child)
987 992 writeTaskList(items)
988   - if not quiet: print "%d now belongs to parent: %s " % (child, parent)
  993 + msg = "%d now belongs to parent: %s " % (child, parent)
  994 + if not quiet: print msg
  995 + commit(['todo.txt'],msg)
989 996
990 997 def isChild(text):
991 998 if text.startswith(childSymbol):

0 comments on commit 954d173

Please sign in to comment.
Something went wrong with that request. Please try again.