Mercurial > public > mercurial-scm > hg
comparison hgext/phabricator.py @ 43077:687b865b95ad
formatting: byteify all mercurial/ and hgext/ string literals
Done with
python3.7 contrib/byteify-strings.py -i $(hg files 'set:mercurial/**.py - mercurial/thirdparty/** + hgext/**.py - hgext/fsmonitor/pywatchman/** - mercurial/__init__.py')
black -l 80 -t py33 -S $(hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**" - hgext/fsmonitor/pywatchman/**')
# skip-blame mass-reformatting only
Differential Revision: https://phab.mercurial-scm.org/D6972
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 09:48:39 -0400 |
parents | 2372284d9457 |
children | 86e4daa2d54c |
comparison
equal
deleted
inserted
replaced
43076:2372284d9457 | 43077:687b865b95ad |
---|---|
77 | 77 |
78 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | 78 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
79 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 79 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
80 # be specifying the version(s) of Mercurial they are tested with, or | 80 # be specifying the version(s) of Mercurial they are tested with, or |
81 # leave the attribute unspecified. | 81 # leave the attribute unspecified. |
82 testedwith = 'ships-with-hg-core' | 82 testedwith = b'ships-with-hg-core' |
83 | 83 |
84 eh = exthelper.exthelper() | 84 eh = exthelper.exthelper() |
85 | 85 |
86 cmdtable = eh.cmdtable | 86 cmdtable = eh.cmdtable |
87 command = eh.command | 87 command = eh.command |
745 newdesc = getdescfromdrev(drev) | 745 newdesc = getdescfromdrev(drev) |
746 # Make sure commit message contain "Differential Revision" | 746 # Make sure commit message contain "Differential Revision" |
747 if old.description() != newdesc: | 747 if old.description() != newdesc: |
748 if old.phase() == phases.public: | 748 if old.phase() == phases.public: |
749 ui.warn( | 749 ui.warn( |
750 _("warning: not updating public commit %s\n") | 750 _(b"warning: not updating public commit %s\n") |
751 % scmutil.formatchangeid(old) | 751 % scmutil.formatchangeid(old) |
752 ) | 752 ) |
753 continue | 753 continue |
754 parents = [ | 754 parents = [ |
755 mapping.get(old.p1().node(), (old.p1(),))[0], | 755 mapping.get(old.p1().node(), (old.p1(),))[0], |