comparison commitwatcher/agent.py @ 12:a0ff003319ec

foo
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 28 Sep 2013 06:40:25 -0700
parents 546695da018c
children 77118f83b5b7
comparison
equal deleted inserted replaced
11:546695da018c 12:a0ff003319ec
1 """ 1 """
2 agents to gather commits 2 agents to gather commits
3 """ 3 """
4 4
5 import feedparser 5 import feedparser
6 import pypatch
7 from abc import abstractmethod 6 from abc import abstractmethod
7 from pypatch import patch
8 from .commit import Commit 8 from .commit import Commit
9 from .store import MemoryStore 9 from .store import MemoryStore
10 10
11 class Agent(object): 11 class Agent(object):
12 """abstract base class""" 12 """abstract base class"""
49 class FeedAgentDiff(FeedAgent): 49 class FeedAgentDiff(FeedAgent):
50 """read files from diff""" 50 """read files from diff"""
51 51
52 @staticmethod 52 @staticmethod
53 def lsdiff(diff): 53 def lsdiff(diff):
54 54 import pdb; pdb.set_trace()
55 55
56 def diff_url(self, link): 56 def diff_url(self, link):
57 """ 57 """
58 returns diff_url from revision link: 58 returns diff_url from revision link:
59 59
60 >>> diff_url('http://hg.mozilla.org/mozilla-central/rev/4e1a3919e741') 60 >>> diff_url('http://hg.mozilla.org/mozilla-central/rev/4e1a3919e741')