equal
deleted
inserted
replaced
74 '''Return the location of the "global" largefiles cache.''' |
74 '''Return the location of the "global" largefiles cache.''' |
75 path = ui.configpath(name, 'usercache') |
75 path = ui.configpath(name, 'usercache') |
76 if path: |
76 if path: |
77 return path |
77 return path |
78 if pycompat.iswindows: |
78 if pycompat.iswindows: |
79 appdata = encoding.environ.get('LOCALAPPDATA',\ |
79 appdata = encoding.environ.get('LOCALAPPDATA', |
80 encoding.environ.get('APPDATA')) |
80 encoding.environ.get('APPDATA')) |
81 if appdata: |
81 if appdata: |
82 return os.path.join(appdata, name) |
82 return os.path.join(appdata, name) |
83 elif pycompat.isdarwin: |
83 elif pycompat.isdarwin: |
84 home = encoding.environ.get('HOME') |
84 home = encoding.environ.get('HOME') |
85 if home: |
85 if home: |