hgext/phabricator.py
changeset 43077 687b865b95ad
parent 43076 2372284d9457
child 43080 86e4daa2d54c
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],