[PATCH] fileserverclient: clear error message if cachepath is not configured
mathias.demare at gmail.com
mathias.demare at gmail.com
Sun Aug 30 19:43:32 UTC 2015
# HG changeset patch
# User Mathias De Maré <mathias.demare at gmail.com>
# Date 1440829254 -7200
# Sat Aug 29 08:20:54 2015 +0200
# Node ID 347de370804798640fcabd5b17f56aaa7b3ec65b
# Parent 51625417d88aef71af2af9d1097e3f52ada97f1e
fileserverclient: clear error message if cachepath is not configured
diff -r 51625417d88a -r 347de3708047 remotefilelog/fileserverclient.py
--- a/remotefilelog/fileserverclient.py Fri Aug 21 12:51:40 2015 -0400
+++ b/remotefilelog/fileserverclient.py Sat Aug 29 08:20:54 2015 +0200
@@ -357,6 +357,8 @@
self.ui = repo.ui
self.repo = repo
self.cachepath = self.ui.config("remotefilelog", "cachepath")
+ if not self.cachepath:
+ raise util.Abort(_("could not find config option remotefilelog.cachepath"))
self._validatecachelog = self.ui.config("remotefilelog", "validatecachelog")
if self.cachepath:
self.cachepath = util.expandpath(self.cachepath)
More information about the Mercurial-devel
mailing list