Commits

Anonymous committed 7bb048c

change references to "repo" by references to "self".

this is from hg-crew changeset dda4ad7c9ea9.

  • Participants
  • Parent commits 03fe99d

Comments (0)

Files changed (1)

File hgext/tasks.py

             node  = super(task_repo, self).commit(*k, **kw)
             if node == None:
                 return None
-            parents = repo.changelog.parents(node)
+            parents = self.changelog.parents(node)
             if parents[1] == nullid:
                 parents = (parents[0],)
 
-            tasks = parse(repo)
-            currenttask = current(repo)
+            tasks = parse(self)
+            currenttask = current(self)
             update = False
             for tname, tinfo in tasks.items():
                 if tasknode(self, tinfo) in parents:
                                     ' update to task to retrieve stash')
                             tinfo['state'] = 2
                             if tname == currenttask:
-                                setcurrent(ui, repo, None)
+                                setcurrent(ui, self, None)
                     else:
                         if tname == currenttask:
                             addtasknode(self, tinfo, node)
                     update = True
             if update:
-                write(ui, repo, tasks)
+                write(ui, self, tasks)
             return node
 
 
 
             tagscache = super(task_repo, self).tags()
             # make an array with fake tags
-            for t, tinfo in parse(repo).iteritems():
+            for t, tinfo in parse(self).iteritems():
                 tagscache[t] = tasknode(self, tinfo)
             return tagscache