Mercurial > hgweb.cgi > hwm
changeset 19:ab317a52e5b4
Add delay to allow configuration file to close in laggy systems. IN: -
author | John Schneiderman <JohnMS@CodeGNU.com> |
---|---|
date | Mon, 28 Jul 2014 18:48:13 -0500 |
parents | 9302ab22517a |
children | 32dc46f22c2a |
files | doc/ChangeLog src/hwm.py src/manager.py |
diffstat | 3 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/ChangeLog Sat Jul 26 15:29:15 2014 -0500 +++ b/doc/ChangeLog Mon Jul 28 18:48:13 2014 -0500 @@ -17,6 +17,8 @@ *** You should have received a copy of the GNU Affero General Public License*** *** along with this program. If not, see <http://www.gnu.org/licenses/>. *** ******************************************************************************** +2014-07-28 John Schneiderman <Licensing _AT_ CodeGNU _DOT_ com> 0.2.1 +- Fixed issue where the configuration file copy started before it closed. 2014-07-26 John Schneiderman <Licensing _AT_ CodeGNU _DOT_ com> 0.2.0 - Ability to modify an existing repository. - Load a managed repository object from it's storage name.
--- a/src/hwm.py Sat Jul 26 15:29:15 2014 -0500 +++ b/src/hwm.py Mon Jul 28 18:48:13 2014 -0500 @@ -25,7 +25,7 @@ # The full name of the application LONG_NAME='HgWeb Manager' # The current version of the application -VERSION = '0.2.0' +VERSION = '0.2.1' # The current copyright years. YEARS = '2014' # A short description of the application
--- a/src/manager.py Sat Jul 26 15:29:15 2014 -0500 +++ b/src/manager.py Mon Jul 28 18:48:13 2014 -0500 @@ -266,7 +266,11 @@ else: target.write(line) target.flush() - shutil.copyfile(target.name, settings.HgWebPath + os.sep + 'hgweb.config') + if not source.closed: + while not source.closed: + print "Waiting three seconds for configuration to close." + time.sleep(3) + shutil.copy2(target.name, settings.HgWebPath + os.sep + 'hgweb.config') return foundRepo def __removeRepository(repo):