[meld] Fix crash when displaying svn directory containing uncommitted copies



commit 8d7e4aff715a933957a9cec99175fd15fec846a6
Author: Tomasz Bury <tomek bury gmail com>
Date:   Mon Apr 4 12:19:56 2011 +0100

    Fix crash when displaying svn directory containing uncommitted copies
    
    There's no revision information in such case, just 'copy': True.
    
    To reproduce the problem sun 'svn cp existing-file new-copy; meld .'

 meld/vc/svn.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/vc/svn.py b/meld/vc/svn.py
index 2ebbc48..1bff58a 100644
--- a/meld/vc/svn.py
+++ b/meld/vc/svn.py
@@ -94,7 +94,7 @@ class Vc(_vc.CachedVc):
                     if item == "":
                         continue
                     rev = None
-                    if item != "unversioned":
+                    if "revision" in status.attrib:
                         rev = status.attrib["revision"]
                     mydir, name = os.path.split(path)
                     if mydir not in tree_state:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]