Changeset - b5a5a60608a7
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-01-26 22:15:40
marcin@python-works.com
be blunt about that error message to not confuse people
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/__init__.py
Show inline comments
 
@@ -16,9 +16,10 @@ def get_current_revision(quiet=False):
 
        scm = get_scm(repopath)[0]
 
        repo = get_repo(path=repopath, alias=scm)
 
        tip = repo.get_changeset()
 
        return (tip.revision, tip.short_id)
 
    except Exception, err:
 
        if not quiet:
 
            print ("Cannot retrieve rhodecode's revision. Original error "
 
                   "was: %s" % err)
 
            print ("WARNING: Cannot retrieve rhodecode's revision. "
 
                   "disregard this if you don't know what that means. "
 
                   "Original error was: %s" % err)
 
        return None
0 comments (0 inline, 0 general)