diff -r 4950ae4d034f -r 566daffc607d hgext/uncommit.py --- a/hgext/uncommit.py Wed Jul 19 13:17:49 2017 -0700 +++ b/hgext/uncommit.py Wed Apr 03 11:21:27 2019 -0700 @@ -147,7 +147,7 @@ # if not everything tracked in that directory can be # uncommitted. if badfiles: - badfiles -= set([f for f in util.dirs(eligible)]) + badfiles -= {f for f in util.dirs(eligible)} for f in sorted(badfiles): if f in s.clean: