Rev 606: just use changed_content as a truth value, rather than checking 'is True' in http://bzr.arbash-meinel.com/plugins/gtk
John Arbash Meinel
john at arbash-meinel.com
Tue Oct 7 21:59:25 BST 2008
At http://bzr.arbash-meinel.com/plugins/gtk
------------------------------------------------------------
revno: 606
revision-id: john at arbash-meinel.com-20081007205901-ifjebw6gzul1awyn
parent: jelmer at samba.org-20080903194613-kkq5m5kilx4rnax5
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: gtk
timestamp: Tue 2008-10-07 15:59:01 -0500
message:
just use changed_content as a truth value, rather than checking 'is True'
-------------- next part --------------
=== modified file 'diff.py'
--- a/diff.py 2008-07-25 13:32:06 +0000
+++ b/diff.py 2008-10-07 20:59:01 +0000
@@ -689,7 +689,7 @@
change_type = kind_changed
display_path = (paths[0] + source_marker
+ ' => ' + paths[1] + marker)
- elif changed_content is True or executables[0] != executables[1]:
+ elif changed_content or executables[0] != executables[1]:
change_type = modified
else:
assert False, "How did we get here?"
More information about the bazaar-commits
mailing list