D8856: packaging: make "mercurial.defaultrc" a key in package_data

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

D8856: packaging: make "mercurial.defaultrc" a key in package_data

pulkit (Pulkit Goyal)
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Before this patch, we had a `mercurial` key with a `defaultrc/*.rc`
  value. It seems more correct to have a `mercurial.defaultrc` key with
  a `*.rc` value since `mercurial.defaultrc` it became a pacakge in
  1390bb81163e <https://phab.mercurial-scm.org/rHG1390bb81163e535eea3feab07a99122a70eba68b> (help: get helptext/ data from `resources` module if
  available, 2019-12-12).

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  setup.py

CHANGE DETAILS

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1624,9 +1624,9 @@
 packagedata = {
     'mercurial': [
         'locale/*/LC_MESSAGES/hg.mo',
-        'defaultrc/*.rc',
         'dummycert.pem',
     ],
+    'mercurial.defaultrc': ['*.rc',],
     'mercurial.helptext': ['*.txt',],
     'mercurial.helptext.internals': ['*.txt',],
 }



To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel