hgext/fix.py
changeset 45809 136a86327316
parent 45807 f90943d753ef
child 45810 09914d934cf4
--- a/hgext/fix.py	Fri Oct 16 11:15:00 2020 -0700
+++ b/hgext/fix.py	Fri Oct 16 15:02:46 2020 -0700
@@ -417,7 +417,7 @@
         revs = repo.revs(b'(not public() and not obsolete()) or wdir()')
     elif opts[b'source']:
         source_revs = scmutil.revrange(repo, opts[b'source'])
-        revs = set(repo.revs(b'%ld::', source_revs))
+        revs = set(repo.revs(b'(%ld::) - obsolete()', source_revs))
         if wdirrev in source_revs:
             # `wdir()::` is currently empty, so manually add wdir
             revs.add(wdirrev)