# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /home/ondra/storage/netbeans/core-main # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: subversion/test/unit/src/org/netbeans/modules/subversion/client/commands/PropertyTestHidden.java --- subversion/test/unit/src/org/netbeans/modules/subversion/client/commands/PropertyTestHidden.java +++ subversion/test/unit/src/org/netbeans/modules/subversion/client/commands/PropertyTestHidden.java @@ -480,7 +480,34 @@ assertPropertyStatus(SVNStatusKind.MODIFIED, file1); assertNotifiedFiles(folder); } + + public void testKWPropertySet () throws Exception { + File folder = createFolder("folder"); + File file1 = createFile(folder, "file1"); + + add(folder); + add(file1); + commit(getWC()); + ISVNClientAdapter c = getNbClient(); + c.propertySet(file1, "svn:keywords", "Id", false); + assertNotifiedFiles(file1); + + assertPropertyStatus(SVNStatusKind.MODIFIED, file1); + + // add property for new file + File file2 = createFile(folder, "file2"); + assertStatus(SVNStatusKind.UNVERSIONED, file2); + c.addFile(file2); + assertStatus(SVNStatusKind.ADDED, file2); + + c.propertySet(file2, "svn:keywords", "Id", false); + assertNotifiedFiles(file2); + + assertPropertyStatus(SVNStatusKind.MODIFIED, file2); + + } + private void assertProperty(String name, String value, Map propMap) { ISVNProperty p = propMap.get(name); assertNotNull(p);