コード例 #1
0
 def gotCommits(self,commits):
      obj=FileController(os.getcwd())
      mycommits = obj.getAllCommits()
      print commits,"\n"
      print mycommits,"\n"
      commits_to_fetch = set(commits).difference(set(mycommits))
      fp = open(obj.statusfile,'a')
      for k in commits_to_fetch:
          fp.write(k)
      fp.close()
      c_to_fetch = [i.split()[1] for i in commits_to_fetch]
      print c_to_fetch
      if c_to_fetch == []:
              reactor.stop()
      else:
              d=self.result.callRemote("getCommitContent","../devil2",c_to_fetch)
              d.addCallback(self.gotCommitsContent,commits,mycommits)
コード例 #2
0
 def remote_getCommits(self, directory):
     f = FileController(directory)
     return f.getAllCommits()
コード例 #3
0
 def remote_getCommits(self,directory):
     f = FileController(directory)
     return f.getAllCommits()