changeset 41:2076518986c1

Allow removal of unregistered repositories. IN: -
author John Schneiderman <JohnMS@CodeGNU.com>
date Wed, 13 Aug 2014 19:02:20 -0500
parents 23605f9372a8
children 214faa2a98c7
files doc/ChangeLog src/manager.py
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doc/ChangeLog	Wed Aug 13 18:55:39 2014 -0500
+++ b/doc/ChangeLog	Wed Aug 13 19:02:20 2014 -0500
@@ -27,6 +27,7 @@
 - Two repositories can no longer have the same display name.
 - Ability to list all managed repositories.
 - Modify now /only/ changes the values supplied, leaving others alone.
+- Removing existing repositories not registered is allowed.
 2014-07-29 John Schneiderman <Licensing _AT_ CodeGNU _DOT_ com> 0.2.1
 - Fixed issue where the configuration file copy started before it closed.
 - Fixed issue in Windows locking temporary file and preventing copying.
--- a/src/manager.py	Wed Aug 13 18:55:39 2014 -0500
+++ b/src/manager.py	Wed Aug 13 19:02:20 2014 -0500
@@ -221,7 +221,6 @@
 			print "Successfully unregistered repository."
 		else:
 			print >>sys.stderr, "Failed to unregister repository."
-			return False
 
 		if __removeRepository(repository):
 			print "Repository removed."
@@ -229,6 +228,7 @@
 		else:
 			print >>sys.stderr, "Failed to delete the repository."
 			return False
+		print >>sys.stderr, "The HgWeb configuration file does not have a paths section!"
 
 def list():
 	""" Outputs a listing of all the known managed repositories
@@ -490,7 +490,7 @@
 			import sys
 
 			print >>sys.stderr, "Repository removal error({0}): {1}".format(e.errno, e.strerror)
-		return False
+			return False
 	shutil.rmtree(settings.RepositoryPath + os.sep + repo.StorageName)
 	return True