D7306: cleanup: remove pointless r-prefixes on single-quoted strings

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Nov 7 19:36:23 UTC 2019


durin42 created this revision.
Herald added a reviewer: indygreg.
Herald added subscribers: mercurial-devel, Kwan, mjpieters.
Herald added a reviewer: martinvonz.
Herald added a reviewer: martinvonz.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This is the promised second step on single-quoted strings. These had
  existed because our source transformer didn't turn r'' into b'', so we
  had tagged some strings as r-strings to get "native" strings on both
  Pythons. Now that the transformer is gone, we can dispense with this
  nonsense.
  
  Methodology:
  
  I ran
  
    hg locate 'set:added() or modified() or clean()' | egrep '.*\.py$'  | xargs egrep --color=never -n  -- \[\^b\]\[\^a-z\]r\'\[\^\'\\\\\]\*\'\[\^\'\
  
  in an emacs grep-mode buffer, and then used a keyboard macro to
  iterate over the results and remove the r prefix as needed.
  
  1. skip-blame removing unneeded r prefixes left over from Python 3 migration.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D7306

AFFECTED FILES
  contrib/hgclient.py
  contrib/perf.py
  contrib/python3-ratchet.py
  doc/gendoc.py
  hgdemandimport/demandimportpy2.py
  hgext/acl.py
  hgext/beautifygraph.py
  hgext/blackbox.py
  hgext/bookflow.py
  hgext/bugzilla.py
  hgext/churn.py
  hgext/commitextras.py
  hgext/convert/common.py
  hgext/convert/gnuarch.py
  hgext/convert/monotone.py
  hgext/convert/subversion.py
  hgext/extdiff.py
  hgext/fastannotate/commands.py
  hgext/githelp.py
  hgext/gpg.py
  hgext/graphlog.py
  hgext/hgk.py
  hgext/histedit.py
  hgext/infinitepush/__init__.py
  hgext/infinitepush/common.py
  hgext/journal.py
  hgext/keyword.py
  hgext/largefiles/lfcommands.py
  hgext/largefiles/overrides.py
  hgext/largefiles/proto.py
  hgext/lfs/__init__.py
  hgext/lfs/blobstore.py
  hgext/lfs/wireprotolfsserver.py
  hgext/mq.py
  hgext/narrow/narrowbundle2.py
  hgext/narrow/narrowcommands.py
  hgext/narrow/narrowwirepeer.py
  hgext/notify.py
  hgext/patchbomb.py
  hgext/phabricator.py
  hgext/rebase.py
  hgext/record.py
  hgext/remotefilelog/__init__.py
  hgext/remotefilelog/basepack.py
  hgext/remotefilelog/basestore.py
  hgext/remotefilelog/contentstore.py
  hgext/remotefilelog/debugcommands.py
  hgext/remotefilelog/metadatastore.py
  hgext/remotefilelog/remotefilectx.py
  hgext/remotefilelog/repack.py
  hgext/remotefilelog/shallowbundle.py
  hgext/share.py
  hgext/sparse.py
  hgext/transplant.py
  hgext/zeroconf/Zeroconf.py
  hgext/zeroconf/__init__.py
  mercurial/ancestor.py
  mercurial/archival.py
  mercurial/branchmap.py
  mercurial/bundle2.py
  mercurial/bundlerepo.py
  mercurial/changelog.py
  mercurial/chgserver.py
  mercurial/cmdutil.py
  mercurial/color.py
  mercurial/commands.py
  mercurial/commandserver.py
  mercurial/config.py
  mercurial/context.py
  mercurial/crecord.py
  mercurial/debugcommands.py
  mercurial/dirstate.py
  mercurial/dispatch.py
  mercurial/encoding.py
  mercurial/error.py
  mercurial/exchange.py
  mercurial/extensions.py
  mercurial/help.py
  mercurial/hgweb/__init__.py
  mercurial/hgweb/common.py
  mercurial/hgweb/server.py
  mercurial/hgweb/wsgicgi.py
  mercurial/httppeer.py
  mercurial/i18n.py
  mercurial/keepalive.py
  mercurial/linelog.py
  mercurial/localrepo.py
  mercurial/lsprof.py
  mercurial/mail.py
  mercurial/manifest.py
  mercurial/match.py
  mercurial/mdiff.py
  mercurial/obsolete.py
  mercurial/patch.py
  mercurial/policy.py
  mercurial/posix.py
  mercurial/profiling.py
  mercurial/pure/charencode.py
  mercurial/pure/osutil.py
  mercurial/pycompat.py
  mercurial/repoview.py
  mercurial/revlog.py
  mercurial/revlogutils/sidedata.py
  mercurial/scmposix.py
  mercurial/scmutil.py
  mercurial/setdiscovery.py
  mercurial/smartset.py
  mercurial/sslutil.py
  mercurial/statichttprepo.py
  mercurial/statprof.py
  mercurial/store.py
  mercurial/subrepo.py
  mercurial/testing/storage.py
  mercurial/transaction.py
  mercurial/ui.py
  mercurial/url.py
  mercurial/urllibcompat.py
  mercurial/util.py
  mercurial/utils/cborutil.py
  mercurial/utils/compression.py
  mercurial/utils/dateutil.py
  mercurial/utils/procutil.py
  mercurial/utils/stringutil.py
  mercurial/vfs.py
  mercurial/win32.py
  mercurial/windows.py
  mercurial/wireprotoframing.py
  mercurial/wireprotov1peer.py
  mercurial/wireprotov2peer.py
  mercurial/worker.py
  tests/fakedirstatewritetime.py
  tests/pullext.py
  tests/test-parseindex2.py
  tests/test-wsgirequest.py

To: durin42, indygreg, martinvonz, #hg-reviewers
Cc: mjpieters, Kwan, mercurial-devel, spectral


More information about the Mercurial-devel mailing list