From e3ffc95c822ea7deb5118212d8a228ae27a2c017 Mon Sep 17 00:00:00 2001 From: irengrig Date: Mon, 6 Feb 2012 18:32:20 +0400 Subject: [PATCH] SVN 1.7: wc-locked attribute --- .../idea/svn17/commandLine/SvnStatusHandler.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/svn4idea/src/org/jetbrains/idea/svn17/commandLine/SvnStatusHandler.java b/plugins/svn4idea/src/org/jetbrains/idea/svn17/commandLine/SvnStatusHandler.java index 3ff4c027b40c..65fe6819bae3 100644 --- a/plugins/svn4idea/src/org/jetbrains/idea/svn17/commandLine/SvnStatusHandler.java +++ b/plugins/svn4idea/src/org/jetbrains/idea/svn17/commandLine/SvnStatusHandler.java @@ -339,6 +339,12 @@ public class SvnStatusHandler extends DefaultHandler { super(new String[]{"commit"}, new String[]{}); } + /**/ + @Override protected void updateStatus(Attributes attributes, PortableStatus status) throws SAXException { final String props = attributes.getValue("props"); @@ -355,6 +361,10 @@ public class SvnStatusHandler extends DefaultHandler { } // optional + final String locked = attributes.getValue("wc-locked"); + if (locked != null && Boolean.parseBoolean(locked)) { + status.setIsLocked(true); + } final String copied = attributes.getValue("copied"); if (copied != null && Boolean.parseBoolean(copied)) { status.setIsCopied(true);