# HG changeset patch # User Anton Shestakov # Date 1578389418 -25200 # Node ID eded640fc61d5673e683f018bee08d8f0a091d78 # Parent 98c15ea18302ca00abc81f0993a1afa3815f1d85 compat: drop isobsnotesupported() that checks if storing notes is supported The check is identical to checking if core has e27f1f04c2cf (hg 4.4). diff -r 98c15ea18302 -r eded640fc61d hgext3rd/evolve/cmdrewrite.py --- a/hgext3rd/evolve/cmdrewrite.py Tue Jan 07 16:05:44 2020 +0700 +++ b/hgext3rd/evolve/cmdrewrite.py Tue Jan 07 16:30:18 2020 +0700 @@ -66,9 +66,6 @@ if not note: return - if not compat.isobsnotesupported(): - ui.warn(_(b"current hg version does not support storing" - b" note in obsmarker\n")) if len(note) > 255: raise error.Abort(_(b"cannot store a note of more than 255 bytes")) if b'\n' in note: diff -r 98c15ea18302 -r eded640fc61d hgext3rd/evolve/compat.py --- a/hgext3rd/evolve/compat.py Tue Jan 07 16:05:44 2020 +0700 +++ b/hgext3rd/evolve/compat.py Tue Jan 07 16:30:18 2020 +0700 @@ -14,7 +14,6 @@ copies, mdiff, obsolete, - obsutil, pycompat, registrar, repair, @@ -58,14 +57,6 @@ eh = exthelper.exthelper() -def isobsnotesupported(): - # hack to know obsnote is supported. The patches for obsnote support was - # pushed before the obsfateprinter patches, so this will serve as a good - # check - if not obsutil: - return False - return util.safehasattr(obsutil, 'obsfateprinter') - # Evolution renaming compat TROUBLES = {