Makes 'copy' the default for the `add_doc` configuration option.

main
Olivier Mangin 7 years ago
parent 668d30ffbf
commit c2e52ec4c4
No known key found for this signature in database
GPG Key ID: D72FEC1C3120A884

@ -8,7 +8,7 @@
### Implemented enhancements
- Adds `move`, and `link` options for handling of documents during import (copy being the default). [(#159)](https://github.com/pubs/pubs/pull/159)
- Adds `move`, and `link` options for handling of documents during `import` (copy being the default). Makes `copy` the default for document handling during `add`. [(#159)](https://github.com/pubs/pubs/pull/159)
- Better dialog after editing paper [(#142)](https://github.com/pubs/pubs/issues/142)

@ -11,7 +11,7 @@ docsdir = string(default="docsdir://")
# Specify if a document should be copied or moved in the docdir, or only
# linked when adding a publication.
doc_add = option('copy', 'move', 'link', default='move')
doc_add = option('copy', 'move', 'link', default='copy')
# the command to use when opening document files
open_cmd = string(default=None)

@ -668,7 +668,7 @@ class TestUsecase(DataCommandTestCase):
def test_first(self):
correct = ['Initializing pubs in /paper_first\n',
'added to pubs:\n[Page99] Page, Lawrence et al. "The PageRank Citation Ranking: Bringing Order to the Web." (1999) \n'
'data/pagerank.pdf was moved to the pubs repository.\n',
'data/pagerank.pdf was copied to the pubs repository.\n',
'[Page99] Page, Lawrence et al. "The PageRank Citation Ranking: Bringing Order to the Web." (1999) \n',
'\n',
'',

Loading…
Cancel
Save