##// END OF EJS Templates
html: move "Submit a bug" to make it more clear that it is for RhodeCode, not the repo...
html: move "Submit a bug" to make it more clear that it is for RhodeCode, not the repo RhodeCode _could_ contain a bug tracker and this link _could_ be for filing bugs for the hosted projects. Moving the link to the RhodeCode info makes it more clear that it is for RhodeCode bugs. The server instance is however something local, not directly related to the upstream.

File last commit:

r2695:26fac32c beta
r3779:e61a656b beta
Show More
paths.py
37 lines | 834 B | text/x-python | PythonLexer
Added VCS into rhodecode core for faster and easier deployments of new versions
r2007 import os
abspath = lambda * p: os.path.abspath(os.path.join(*p))
def get_dirs_for_path(*paths):
"""
Returns list of directories, including intermediate.
"""
for path in paths:
head = path
while head:
head, tail = os.path.split(head)
if head:
yield head
else:
# We don't need to yield empty path
break
def get_dir_size(path):
root_path = path
size = 0
for path, dirs, files in os.walk(root_path):
for f in files:
try:
size += os.path.getsize(os.path.join(path, f))
except OSError:
pass
return size
Fixed issue with get_user_home function returned None, and some code didn't like that. We really don't need this since it's VCS cli
r2695
Added VCS into rhodecode core for faster and easier deployments of new versions
r2007 def get_user_home():
"""
Returns home path of the user.
"""
Fixed issue with get_user_home function returned None, and some code didn't like that. We really don't need this since it's VCS cli
r2695 return os.getenv('HOME', os.getenv('USERPROFILE')) or ''