Le 08/08/2013 17:33, Yuancheng Peng a écrit :
>
> In pythran-replay:
>
> > +
> > +log = logging.getLogger(__name__)
> > +
> > +# read config
> > +config = ConfigParser.RawConfigParser()
> > +if not os.path.exists('.replay-config'):
> > +    log.error('.replay-config not found!')
> > +    exit()
> > +config.read('.replay-config')
> > +
> > +
> > +def verify_commit(branch, commit):
> > +    commits = REPO.iter_commits(branch)
> > +
> > +    for current in commits:
> > +        return str(current)== commit
>
> The commits is an iterable of Commit objects. I wanted to check if the 
> commit id is in the repo. So once we find it we return true. Elsely 
> the program stop.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/pbrunet/pythran-replay/pull/1/files#r5660717>.
>
think about it again ;)