D7624: rcutil: don't check if defaultrc/ is a directory -- we know it is
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Dec 17 11:43:53 EST 2019
Closed by commit rHG86fe85364811: rcutil: don't check if defaultrc/ is a directory -- we know it is (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7624?vs=18654&id=18815
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7624/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7624
AFFECTED FILES
mercurial/rcutil.py
CHANGE DETAILS
diff --git a/mercurial/rcutil.py b/mercurial/rcutil.py
--- a/mercurial/rcutil.py
+++ b/mercurial/rcutil.py
@@ -63,11 +63,8 @@
def defaultrcpath():
'''return rc paths in defaultrc'''
- path = []
defaultpath = os.path.join(resourceutil.datapath, b'defaultrc')
- if os.path.isdir(defaultpath):
- path = _expandrcpath(defaultpath)
- return path
+ return _expandrcpath(defaultpath)
def rccomponents():
To: martinvonz, #hg-reviewers, pulkit
Cc: pulkit, mercurial-devel
More information about the Mercurial-devel
mailing list