]> arthur.barton.de Git - bup.git/commit
Adjust metadata handling for python 3
authorRob Browning <rlb@defaultvalue.org>
Sat, 28 Dec 2019 19:54:03 +0000 (13:54 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 19 Jan 2020 17:46:10 +0000 (11:46 -0600)
commit1c94d08bfe63510418d8cdf23affc5d7350d70b2
treeeb306a7dd193a5d7162be414cbdd976c814e2fbd
parentf0a4b3b6ef7d00e64b04dee51b8e15db71b693d3
Adjust metadata handling for python 3

Adapt bup.metadata for python 3 and the other bits directly affected:
bup-ftp, bup-ls, bup-meta, bup-xstat, and bup.ls.

Rename metadata detailed_str() and summary_str() to detailed_bytes()
and summary_bytes() since they aren't (and absolutely should not be)
localized.  They produce output that should be suitable for
programmatic use, i.e. "bup ls | grep ...".  Not sure we'll keep those
names, but they'll do for now.

Also rename fstime_to_sec_str() to fstime_to_sec_bytes() since that's
the only way we ever use it.

Make a minimal change to bup-ftp for now -- just enough to handle the
changed ls.within_repo arguments.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/ftp-cmd.py
cmd/ls-cmd.py
cmd/meta-cmd.py
cmd/xstat-cmd.py
lib/bup/ls.py
lib/bup/metadata.py
lib/bup/xstat.py