mercurial/dagop.py
changeset 41389 7e55ca658e4b
parent 41359 431cf2c8c839
child 41533 0f64091cc851
--- a/mercurial/dagop.py	Sat Jan 26 12:21:20 2019 +0800
+++ b/mercurial/dagop.py	Sat Jan 26 12:24:04 2019 +0800
@@ -221,7 +221,7 @@
     Scan ends at the stopdepth (exlusive) if specified. Revisions found
     earlier than the startdepth are omitted.
     """
-    if startdepth is None and (stopdepth is None or stopdepth == maxlogdepth):
+    if startdepth is None and (stopdepth is None or stopdepth >= maxlogdepth):
         gen = _genrevdescendants(repo, revs, followfirst)
     else:
         gen = _genrevdescendantsofdepth(repo, revs, followfirst,