mercurial/dagop.py
changeset 33027 a10f5f6771f6
parent 33003 f63d111258da
child 33073 b04cf7a6e0f3
equal deleted inserted replaced
33022:ce96efec8112 33027:a10f5f6771f6
    30         cut = None
    30         cut = None
    31     if startdepth is None:
    31     if startdepth is None:
    32         startdepth = 0
    32         startdepth = 0
    33     if stopdepth is None:
    33     if stopdepth is None:
    34         stopdepth = _maxlogdepth
    34         stopdepth = _maxlogdepth
    35     if stopdepth <= 0:
    35     if stopdepth == 0:
    36         return
    36         return
       
    37     if stopdepth < 0:
       
    38         raise error.ProgrammingError('negative stopdepth')
    37 
    39 
    38     cl = repo.changelog
    40     cl = repo.changelog
    39 
    41 
    40     # load input revs lazily to heap so earlier revisions can be yielded
    42     # load input revs lazily to heap so earlier revisions can be yielded
    41     # without fully computing the input revs
    43     # without fully computing the input revs