29 Commits

Author SHA1 Message Date
eaa10175fe Added exclusion filter to blendfile_pack:main()
Also improved CLI descriptions and added some assertions to help debuggin
stuff.
2017-04-21 17:51:00 +02:00
46469f384a Set up logging when running from CLI.
Logging is sent to stderr, so it shouldn't interfere with external
programs expecting output on stdout.
2017-04-05 12:31:16 +02:00
420f146067 Removed unused code
At the bottom of the file, an exception is raised when __name__ ==
'__main__', stating that it's not allowed to run the file in that way.
It's silly to then still set up logging in that case.
2017-04-05 12:30:35 +02:00
ac0c83d49d Fix own stupid mistake in recent 'repo base' new option for bam pack.
Would not work in case no base repo was specified...
2016-12-14 14:06:51 +01:00
127843e648 Extend 'pack' feature by adding option to keep repo's hierarchy, and warn about external deps.
`bam_cli.py pack` command now takes two more (optional) parameters, one
to specify the base directory of the repository, and one to enable
warnings when 'external' dependencies (to given base dir) are found.

Note that by default, base directory is the directory of the packed
.blend file (such that default behavior does not change at all).

See CLI help for more.
2016-11-28 10:47:31 +01:00
5f5baf33b2 Minor changes
- use functions instead of lambda
- dont use color for non-terminal tty's
- add --temp argument for blendfile_pack
2016-01-29 17:47:57 +11:00
5e9eb15409 Add 'bam copy' command. 2016-01-13 02:38:59 +11:00
bd3173b194 Left in prints by accident 2016-01-12 23:55:22 +11:00
Eibriel
f1e5d1d665 Fix 2 for T46811, wrong paths on .bam_paths_uuid 2015-12-17 11:26:20 -03:00
4f322cfbcb Fix T46811: Replaying binary edits failed for relative paths 2015-11-20 15:24:22 +11:00
e06112b2d2 Use context manager for opening file 2015-06-09 03:13:19 +10:00
0aa730089b pack, support --exclude argument
See: bam pack --help
2015-06-04 14:55:40 +10:00
89f3ae2649 bam pack: Support for passing the dir only
if you give a dir as output, it will use the input path name. (changing blend to zip if needed)
2015-05-22 22:55:26 +10:00
ab8f30f212 Add bam pack, --mode=FILE option 2015-05-22 22:48:28 +10:00
6130e98ea8 bam ls, add --full option to return full paths 2015-03-14 16:17:14 +11:00
fd51bbc4ba pack: make the output arg optional
This way you can run:

  bam pack foobar.blend

.. which outputs foobar.zip
2015-03-03 10:53:21 +11:00
18b1ecff1e Add support for compressed chunks on download
uses lzma compression (4mb chunks currently)
2015-02-20 15:55:02 +11:00
e76691f18b support for partial downloads
(use local cache where possible)
2015-02-20 15:51:10 +11:00
535886c915 add revert
uses local cache and replays binary edits
2015-02-07 00:53:20 +11:00
98f67c5d7f test local replay of edits, needed for local cache 2015-01-28 20:29:29 +11:00
27a0f7471b minor var rename (to sync with branch) 2015-01-28 17:55:37 +11:00
52a9c508cb Raise an exception when trying to run cli.py directly. 2015-01-15 03:51:29 +11:00
b16801dd6c Initial Variation support
See: T42930

Also added tests
2015-01-09 05:21:14 +11:00
3ddc2551c7 bam deps: disallow zero paths tp be passed 2015-01-08 18:40:25 +11:00
07c2bc5075 doc generation for commandline now extracted into an RST directly. 2014-12-21 02:37:54 +01:00
c5d25dce15 update comments 2014-12-20 02:32:51 +01:00
1ed725876a cleanup 2014-12-20 01:59:07 +01:00
f8438d9419 bam cli: add compression level support 2014-12-19 17:29:51 +01:00
871600312c re-arrange modules, preparing for python-package-index 2014-12-19 11:33:05 +01:00