Skip to content

Commit

Permalink
REmove deprecated garbagecollection flag, use features instead
Browse files Browse the repository at this point in the history
  • Loading branch information
white-gecko committed Dec 10, 2019
1 parent 484cedc commit 433e142
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,13 @@ Specify a path to a configuration file. (Defaults to ./config.ttl)

Run Quit-Store without versioning activated

`-gc`, `--garbagecollection`

Enable garbage collection. With this option activated, git will check for garbage collection after each commit. This may slow down response time but will keep the repository size small.

`-f`, `--features`

This option enables additional features of the store:

- `provenance` - Enable browsing interfaces for provenance information.
- `persistance` - Store all internal data as RDF graph.
- `garbagecollection` - Enable garbage collection. With this feature enabled, git will check for garbage collection after each commit. This may slow down response time but will keep the repository size small.

`-v`, `--verbose` and `-vv`, `--verboseverbose`

Expand Down
9 changes: 0 additions & 9 deletions quit/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ def initialize(args):
logger.error("Can not create logfile: {}".format(args['logfile']))
sys.exit('Exiting quit')

if args['garbagecollection']:
logger.info(
"Please use the option \"--feature garbagecollection\" instead of "
+ "\"-gc\" or \"--garbagecollection\"."
)
args['features'] |= Feature.GarbageCollection

# from Github: https://github.com/RDFLib/rdflib/issues/617
# Egregious hack, the SequencePath object doesn't support compare, this implements the __lt__
# method so that algebra.py works on sorting in SPARQL queries on e.g. rdf:List paths
Expand Down Expand Up @@ -190,7 +183,6 @@ def getDefaults():
'configfile': "config.ttl",
'oauth_clientid': None,
'oauth_clientsecret': None,
'garbagecollection': False,
'verbose': 0,
'flask_debug': False,
'defaultgraph_union': False,
Expand Down Expand Up @@ -260,7 +252,6 @@ def parseArgs(args):
parser.add_argument('-c', '--configfile', type=str, help=confighelp)
parser.add_argument('--oauth-clientid', type=str, dest='oauth_clientid')
parser.add_argument('--oauth-clientsecret', type=str, dest='oauth_clientsecret')
parser.add_argument('-gc', '--garbagecollection', action='store_true')
parser.add_argument('-v', '--verbose', action='count', default=0)
parser.add_argument('--flask-debug', action='store_true')
parser.add_argument('--defaultgraph-union', action='store_true')
Expand Down

0 comments on commit 433e142

Please sign in to comment.