• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java SVNLock类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.tmatesoft.svn.core.SVNLock的典型用法代码示例。如果您正苦于以下问题:Java SVNLock类的具体用法?Java SVNLock怎么用?Java SVNLock使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SVNLock类属于org.tmatesoft.svn.core包,在下文中一共展示了SVNLock类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: close

import org.tmatesoft.svn.core.SVNLock; //导入依赖的package包/类
@Override
public void close() throws Exception {
  final SVNRepository repo = openSvnRepository(url);
  long revision = repo.getLatestRevision();
  try {
    final SVNLock[] locks = repo.getLocks(suffix);
    if (locks.length > 0) {
      final SVNURL root = repo.getRepositoryRoot(true);
      final Map<String, String> locksMap = new HashMap<>();
      for (SVNLock lock : locks) {
        final String relativePath = SVNURLUtil.getRelativeURL(url, root.appendPath(lock.getPath(), false), false);
        locksMap.put(relativePath, lock.getID());
      }
      repo.unlock(locksMap, true, null);
    }
    final ISVNEditor editor = repo.getCommitEditor("Remove subdir for test", null, false, null);
    editor.openRoot(-1);
    editor.deleteEntry(suffix, revision);
    editor.closeEdit();
  } finally {
    repo.closeSession();
  }
}
 
开发者ID:bozaro,项目名称:git-as-svn,代码行数:24,代码来源:SvnTesterExternal.java


示例2: create

import org.tmatesoft.svn.core.SVNLock; //导入依赖的package包/类
@Nullable
public static Lock create(@Nullable SVNLock lock) {
  Lock result = null;

  if (lock != null) {
    result = new Lock.Builder().setOwner(lock.getOwner()).setComment(lock.getComment()).setCreationDate(lock.getCreationDate())
      .setExpirationDate(lock.getExpirationDate()).build();
  }

  return result;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:Lock.java


示例3: getLock

import org.tmatesoft.svn.core.SVNLock; //导入依赖的package包/类
public SVNLock getLock(final String path) throws NotFoundException, PageStoreAuthenticationException, PageStoreException {
  return execute(new SVNAction<SVNLock>() {
    public SVNLock perform(final BasicSVNOperations operations, final SVNRepository repository) throws SVNException, PageStoreException {
      return repository.getLock(path);
    }
  });
}
 
开发者ID:CoreFiling,项目名称:reviki,代码行数:8,代码来源:RepositoryBasicSVNOperations.java


示例4: IdeaSVNInfo

import org.tmatesoft.svn.core.SVNLock; //导入依赖的package包/类
public IdeaSVNInfo(File file,
                   SVNURL url,
                   SVNURL rootURL,
                   long revision,
                   SVNNodeKind kind,
                   String uuid,
                   long committedRevision,
                   Date committedDate,
                   String author,
                   String schedule,
                   SVNURL copyFromURL,
                   long copyFromRevision,
                   Date textTime,
                   String propTime,
                   String checksum,
                   String conflictOld,
                   String conflictNew,
                   String conflictWorking,
                   String propRejectFile,
                   SVNLock lock,
                   SVNDepth depth,
                   String changelistName,
                   long wcSize,
                   SVNTreeConflictDescription treeConflict) {
  super(file, url, rootURL, revision, kind, uuid, committedRevision, null, author, schedule, copyFromURL, copyFromRevision,
        null, propTime, checksum, conflictOld, conflictNew, conflictWorking, propRejectFile, lock, depth, changelistName, wcSize,
        treeConflict);
  myCorrectCommittedDate = committedDate;
  myCorrectTextDate = textTime;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:31,代码来源:IdeaSVNInfo.java


示例5: handleLock

import org.tmatesoft.svn.core.SVNLock; //导入依赖的package包/类
public void handleLock(final String path, final SVNLock lock, final SVNErrorMessage error) throws SVNException {
}
 
开发者ID:CoreFiling,项目名称:reviki,代码行数:3,代码来源:SVNLockHandlerAdapter.java


示例6: handleUnlock

import org.tmatesoft.svn.core.SVNLock; //导入依赖的package包/类
public void handleUnlock(final String path, final SVNLock lock, final SVNErrorMessage error) throws SVNException {
}
 
开发者ID:CoreFiling,项目名称:reviki,代码行数:3,代码来源:SVNLockHandlerAdapter.java


示例7: getLock

import org.tmatesoft.svn.core.SVNLock; //导入依赖的package包/类
public SVNLock getLock(final String path) throws NotFoundException, PageStoreAuthenticationException, PageStoreException {
  return getDelegate().getLock(path);
}
 
开发者ID:CoreFiling,项目名称:reviki,代码行数:4,代码来源:DelegatingBasicSVNOperations.java


示例8: create

import org.tmatesoft.svn.core.SVNLock; //导入依赖的package包/类
public SVNLock create() {
  return new SVNLock(myPath, myID, myOwner, myComment, myCreationDate, myExpirationDate);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:SVNLockWrapper.java


示例9: PortableStatus

import org.tmatesoft.svn.core.SVNLock; //导入依赖的package包/类
/**
 * Constructs an <b>SVNStatus</b> object filling it with status information
 * details.
 * <p/>
 * <p/>
 * Used by SVNKit internals to construct and initialize an <b>SVNStatus</b>
 * object. It's not intended for users (from an API point of view).
 *
 * @param url                    item's repository location
 * @param file                   item's path in a File representation
 * @param kind                   item's node kind
 * @param revision               item's working revision
 * @param committedRevision      item's last changed revision
 * @param committedDate          item's last changed date
 * @param author                 item's last commit author
 * @param contentsStatus         local status of item's contents
 * @param propertiesStatus       local status of item's properties
 * @param remoteContentsStatus   status of item's contents against a repository
 * @param remotePropertiesStatus status of item's properties against a repository
 * @param isLocked               if the item is locked by the driver (not a user lock)
 * @param isCopied               if the item is added with history
 * @param isSwitched             if the item is switched to a different URL
 * @param isFileExternal         tells if the item is an external file
 * @param conflictNewFile        temp file with latest changes from the repository
 * @param conflictOldFile        temp file just as the conflicting one was at the BASE revision
 * @param conflictWrkFile        temp file with all user's current local modifications
 * @param projRejectFile         temp file describing properties conflicts
 * @param copyFromURL            url of the item's ancestor from which the item was copied
 * @param copyFromRevision       item's ancestor revision from which the item was copied
 * @param remoteLock             item's lock in the repository
 * @param localLock              item's local lock
 * @param entryProperties        item's SVN specific '&lt;entry' properties
 * @param changelistName         changelist name which the item belongs to
 * @param wcFormatVersion        working copy format number
 * @param treeConflict           tree conflict description
 * @since 1.3
 */
public PortableStatus(SVNURL url,
                      File file,
                      SVNNodeKind kind,
                      SVNRevision revision,
                      SVNRevision committedRevision,
                      Date committedDate,
                      String author,
                      SVNStatusType contentsStatus,
                      SVNStatusType propertiesStatus,
                      SVNStatusType remoteContentsStatus,
                      SVNStatusType remotePropertiesStatus,
                      boolean isLocked,
                      boolean isCopied,
                      boolean isSwitched,
                      boolean isFileExternal,
                      SVNLock remoteLock,
                      SVNLock localLock,
                      Map entryProperties,
                      String changelistName,
                      int wcFormatVersion,
                      boolean isConflicted,
                      Getter<SVNInfo> infoGetter) {
  super(url, file, kind, revision, committedRevision, committedDate, author, contentsStatus, propertiesStatus, remoteContentsStatus,
        remotePropertiesStatus, isLocked, isCopied, isSwitched, isFileExternal, null, null, null, null, null, null, remoteLock,
        localLock, entryProperties, changelistName, wcFormatVersion, null);
  myConflicted = isConflicted;
  myInfoGetter = infoGetter == null ? new Getter<SVNInfo>() {
    @Override
    public SVNInfo get() {
      return null;
    }
  } : infoGetter;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:71,代码来源:PortableStatus.java


示例10: getLock

import org.tmatesoft.svn.core.SVNLock; //导入依赖的package包/类
SVNLock getLock(String path) throws NotFoundException, PageStoreAuthenticationException, PageStoreException; 
开发者ID:CoreFiling,项目名称:reviki,代码行数:2,代码来源:BasicSVNOperations.java



注:本文中的org.tmatesoft.svn.core.SVNLock类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java StoreEvent类代码示例发布时间:2022-05-22
下一篇:
Java SpatialContextFactory类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap