]> arthur.barton.de Git - bup.git/commit
Adjust Node.__cmp__() to compare full paths.
authorGabriele Santilli <santilli.gabriele@gmail.com>
Thu, 15 Dec 2011 01:04:56 +0000 (19:04 -0600)
committerRob Browning <rlb@defaultvalue.org>
Fri, 17 Aug 2012 18:42:56 +0000 (13:42 -0500)
commit383111ee06546d90f3762f2147a89c46f0784dff
tree0307476fee9c09ae580feb6a99338bbd7ac7ecfe
parent10e716e069f0fc9b461b6f9e6410c992f2a0c089
Adjust Node.__cmp__() to compare full paths.

The function now returns immediately if the two arguments are the same
Python object, otherwise it compares the full path name (rather than
just the file name).

Discussion: https://groups.google.com/group/bup-list/browse_thread/thread/1afc33b26394d69e/1a7a8155a1005600

Signed-off-by: Gabriele Santilli <gabriele@colellachiara.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/vfs.py