# HG changeset patch # User John Schneiderman # Date 1428423931 -7200 # Node ID a1b9dc5efa75d1f5b2db5a92551d076b72d3d353 # Parent 2785733f73775771afd38f67fe1d1722aa4b6b43 Raises an error when the storage name is not provided. diff -r 2785733f7377 -r a1b9dc5efa75 setup.py --- a/setup.py Sat Mar 28 11:49:41 2015 +0100 +++ b/setup.py Tue Apr 07 18:25:31 2015 +0200 @@ -33,8 +33,7 @@ 'mercurial.hg', 'mercurial.ui', 'mercurial.error', - 'mercurial.hgweb', - 'filelock' + 'mercurial.hgweb' ] # Basic package setup information diff -r 2785733f7377 -r a1b9dc5efa75 src/hwm.py --- a/src/hwm.py Sat Mar 28 11:49:41 2015 +0100 +++ b/src/hwm.py Tue Apr 07 18:25:31 2015 +0200 @@ -59,8 +59,10 @@ managed.DisplayName = original.DisplayName managed.Description = original.Description managed.Contact = original.Contact + elif args.storage: + managed = manrepo.Repository(args.storage) else: - managed = manrepo.Repository(args.storage) + raise ValueError("Missing repository storage name.") if args.name: managed.DisplayName = args.name