public String getVersionURL() throws SVNException { if (myVURL == null) { if (myMediator != null) { myVURL = myMediator.getWorkspaceProperty(SVNEncodingUtil.uriDecode(myPath), "svn:wc:ra_dav:version-url"); } } return myVURL; }
String path = (String) myPathsMap.get(reposPath); if (path != null && myMediator != null) { myMediator.setWorkspaceProperty(SVNEncodingUtil.uriDecode(path), "svn:wc:ra_dav:version-url", myVersionPath);
SVNPropertyValue value = myMediator.getWorkspaceProperty(SVNEncodingUtil.uriDecode(myPath), SVNProperty.WC_URL); myVURL = value == null ? null : value.getString(); if ("".equals(myVURL)) { myMediator.setWorkspaceProperty(SVNEncodingUtil.uriDecode(myPath), SVNProperty.WC_URL, null); myVURL = null; myMediator.setWorkspaceProperty(SVNEncodingUtil.uriDecode(myPath), SVNProperty.WC_URL, urlPropertyValue);
public String doMakeActivity(ISVNWorkspaceMediator mediator) throws SVNException { String url = null; if (mediator != null) { SVNPropertyValue property = mediator.getWorkspaceProperty("", SVNProperty.ACTIVITY_URL); if (property != null && property.isString()) { url = property.getString(); } } String locationPath = SVNEncodingUtil.uriEncode(getLocation().getPath()); if (url == null) { url = getActivityCollectionURL(locationPath, false); } IHTTPConnection httpConnection = getConnection(); String activityURL = SVNPathUtil.append(url, generateUUID()); HTTPStatus status = httpConnection.request("MKACTIVITY", activityURL, null, (StringBuffer) null, 201, 404, null, null); if (status.getCode() == 404) { url = getActivityCollectionURL(locationPath, true); activityURL = SVNPathUtil.append(url, generateUUID()); status = httpConnection.request("MKACTIVITY", activityURL, null, (StringBuffer) null, 201, 0, null, null); } if (url != null && mediator != null) { mediator.setWorkspaceProperty("", SVNProperty.ACTIVITY_URL, SVNPropertyValue.create(url)); } return activityURL; }
public String doMakeActivity(ISVNWorkspaceMediator mediator) throws SVNException { String url = null; if (mediator != null) { SVNPropertyValue property = mediator.getWorkspaceProperty("", SVNProperty.ACTIVITY_URL); if (property != null && property.isString()) { url = property.getString(); } } String locationPath = SVNEncodingUtil.uriEncode(getLocation().getPath()); if (url == null) { url = getActivityCollectionURL(locationPath, false); } IHTTPConnection httpConnection = getConnection(); String activityURL = SVNPathUtil.append(url, generateUUID()); HTTPStatus status = httpConnection.request("MKACTIVITY", activityURL, null, (StringBuffer) null, 201, 404, null, null); if (status.getCode() == 404) { url = getActivityCollectionURL(locationPath, true); activityURL = SVNPathUtil.append(url, generateUUID()); status = httpConnection.request("MKACTIVITY", activityURL, null, (StringBuffer) null, 201, 0, null, null); } if (url != null && mediator != null) { mediator.setWorkspaceProperty("", SVNProperty.ACTIVITY_URL, SVNPropertyValue.create(url)); } return activityURL; }
if (path != null && myMediator != null) { String versionURLPropName = "svn:wc:ra_dav:version-url"; myMediator.setWorkspaceProperty(SVNEncodingUtil.uriDecode(path), versionURLPropName, SVNPropertyValue.create(myVersionPath));
public String doMakeActivity(ISVNWorkspaceMediator mediator) throws SVNException { beforeCall(); String url = null; if (mediator != null) { SVNPropertyValue property = mediator.getWorkspaceProperty("", SVNProperty.ACTIVITY_URL); if (property != null && property.isString()) { url = property.getString(); } } String locationPath = SVNEncodingUtil.uriEncode(getLocation().getPath()); if (url == null) { url = getActivityCollectionURL(locationPath, false); } IHTTPConnection httpConnection = getConnection(); String activityURL = SVNPathUtil.append(url, generateUUID()); HTTPStatus status = performHttpRequest(httpConnection, "MKACTIVITY", activityURL, null, (StringBuffer) null, 201, 404, null, null); if (status.getCode() == 404) { url = getActivityCollectionURL(locationPath, true); activityURL = SVNPathUtil.append(url, generateUUID()); status = performHttpRequest(httpConnection, "MKACTIVITY", activityURL, null, (StringBuffer) null, 201, 0, null, null); } if (url != null && mediator != null) { mediator.setWorkspaceProperty("", SVNProperty.ACTIVITY_URL, SVNPropertyValue.create(url)); } return activityURL; }
myMediator.setWorkspaceProperty(SVNEncodingUtil.uriDecode(path), versionURLPropName, urlPropertyValue);
SVNPropertyValue value = myMediator.getWorkspaceProperty(SVNEncodingUtil.uriDecode(myPath), SVNProperty.WC_URL); myVURL = value == null ? null : value.getString(); if (myVURL != null) { myMediator.setWorkspaceProperty(SVNEncodingUtil.uriDecode(myPath), SVNProperty.WC_URL, SVNPropertyValue.create(myURL));
myMediator.setWorkspaceProperty(SVNEncodingUtil.uriDecode(path), versionURLPropName, urlPropertyValue);
SVNPropertyValue value = myMediator.getWorkspaceProperty(SVNEncodingUtil.uriDecode(myPath), SVNProperty.WC_URL); myVURL = value == null ? null : value.getString(); if (myVURL != null) { myMediator.setWorkspaceProperty(SVNEncodingUtil.uriDecode(myPath), SVNProperty.WC_URL, urlPropertyValue);