Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 195490 Details for
Bug 339990
[Repo view] Module disappears in CVS Repositories view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
test which does not fail
patch.txt (text/plain), 3.71 KB, created by
Krzysztof Daniel
on 2011-05-12 08:01:12 EDT
(
hide
)
Description:
test which does not fail
Filename:
MIME Type:
Creator:
Krzysztof Daniel
Created:
2011-05-12 08:01:12 EDT
Size:
3.71 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.team.tests.cvs.core >Index: src/org/eclipse/team/tests/ccvs/core/cvsresources/EclipseSynchronizerTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/cvsresources/EclipseSynchronizerTest.java,v >retrieving revision 1.21 >diff -u -r1.21 EclipseSynchronizerTest.java >--- src/org/eclipse/team/tests/ccvs/core/cvsresources/EclipseSynchronizerTest.java 17 Nov 2009 08:42:56 -0000 1.21 >+++ src/org/eclipse/team/tests/ccvs/core/cvsresources/EclipseSynchronizerTest.java 12 May 2011 11:57:47 -0000 >@@ -29,6 +29,7 @@ > import org.eclipse.core.resources.IResourceVisitor; > import org.eclipse.core.resources.IWorkspaceRoot; > import org.eclipse.core.resources.ResourcesPlugin; >+import org.eclipse.core.resources.mapping.ResourceMapping; > import org.eclipse.core.runtime.CoreException; > import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.core.runtime.Path; >@@ -45,8 +46,13 @@ > import org.eclipse.team.internal.ccvs.core.syncinfo.MutableResourceSyncInfo; > import org.eclipse.team.internal.ccvs.core.syncinfo.ResourceSyncInfo; > import org.eclipse.team.internal.ccvs.core.util.SyncFileWriter; >+import org.eclipse.team.internal.ccvs.ui.model.AllRootsElement; >+import org.eclipse.team.internal.ccvs.ui.model.BranchCategory; >+import org.eclipse.team.internal.ccvs.ui.model.CVSTagElement; >+import org.eclipse.team.internal.ccvs.ui.model.RemoteContentProvider; > import org.eclipse.team.tests.ccvs.core.CVSTestSetup; > import org.eclipse.team.tests.ccvs.core.EclipseTest; >+import org.eclipse.team.tests.ccvs.core.mappings.ResourceMapperTests; > > /** > * Tests the EclipseSynchronizer. >@@ -917,4 +923,60 @@ > assertTrue(!sync.getResourceSync(file21).getRevision().equals(revision)); > > } >+ >+ private String moduleName; >+ private String branchName; >+ >+ public void testBug339990() throws TeamException, CoreException { >+ >+ IProject project = getUniqueTestProject("Bug339990Project"); >+ buildResources(project, new String[] { "file1.txt" }, true); >+ shareProject(getRepository(), project, moduleName, DEFAULT_MONITOR); >+ >+ CVSTag version = new CVSTag("Root_" + branchName, CVSTag.VERSION); >+ branch(new ResourceMapping[] { ResourceMapperTests.asResourceMapping( >+ new IResource[] { project }, IResource.DEPTH_INFINITE) }, >+ version, new CVSTag(branchName, CVSTag.BRANCH), true); >+ >+ RemoteContentProvider rcp = new RemoteContentProvider(); >+ AllRootsElement are = new AllRootsElement(); >+ Object[] elements = rcp.getElements(are); >+ for (int i = 0; i < elements.length; i++) { >+ Object o = elements[i]; >+ displayChildren(rcp, o, 0); >+ } >+ } >+ >+ private void displayChildren(RemoteContentProvider rcp, Object o, int depth) { >+ boolean branchCategory = (o instanceof BranchCategory); >+ if(depth == 1 && !branchCategory){ >+ return; >+ } >+ if(branchCategory){ >+ BranchCategory b = (BranchCategory) o; >+ Object[] branches = rcp.getChildren(b); >+ for(int j = 0; j < branches.length; j++){ >+ if(branches[j] instanceof CVSTagElement){ >+ CVSTagElement el = (CVSTagElement) branches[j]; >+ Object[] modules = rcp.getChildren(el); >+ System.out.println(modules); >+ } >+ } >+ return; >+ } >+ ++depth; >+ if(rcp.hasChildren(o)){ >+ Object[] children = rcp.getChildren(o); >+ for(int j = 0; j < children.length; j++){ >+ displayChildren(rcp, children[j], depth ); >+ } >+ } >+ } >+ >+ protected void setUp() throws Exception { >+ String time = Long.toString(System.currentTimeMillis()); >+ moduleName = "Bug339990TestModule" + time; >+ branchName = "Bug339990branch" + time; >+ super.setUp(); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 339990
:
195490
|
201405
|
202528
|
202665
|
203490
|
204535
|
204949
|
204950
|
205121
|
205178
|
205420