[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-dev] Re: subclipse svn commit: r4360 - branches/tree-conflicts/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter trunk/svnClientAdapter/src/javahl/org/tigris/subversion/svnclientadapter/javahl

From: Mark Phippard <markphip_at_gmail.com>
Date: Thu, 19 Mar 2009 17:17:50 -0400

You commit this to the wrong location. The tree-conflicts branch
should be dead.

On Thu, Mar 19, 2009 at 5:04 PM, Stephen Elsemore <selsemore_at_collab.net> wrote:
> Author: selsemore
> Date: 2009-03-19 14:04:56-0700
> New Revision: 4360
>
> Modified:
>   branches/tree-conflicts/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter/ISVNClientAdapter.java
>   trunk/svnClientAdapter/src/javahl/org/tigris/subversion/svnclientadapter/javahl/AbstractJhlClientAdapter.java
>
> Log:
> Expose recursive info call.
>
> Modified: branches/tree-conflicts/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter/ISVNClientAdapter.java
> Url: http://subclipse.tigris.org/source/browse/subclipse/branches/tree-conflicts/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter/ISVNClientAdapter.java?view=diff&pathrev=4360&r1=4359&r2=4360
> ==============================================================================
> --- branches/tree-conflicts/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter/ISVNClientAdapter.java     (original)
> +++ branches/tree-conflicts/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter/ISVNClientAdapter.java     2009-03-19 14:04:56-0700
> @@ -1408,6 +1408,16 @@
>         * @throws SVNClientException
>         */
>        public ISVNInfo getInfo(File file) throws SVNClientException;
> +
> +       /**
> +        * Get information about a file or directory.
> +        * Uses info2() call which contacts the repository
> +        * @param file
> +        * @param descend get recursive information
> +        * @return information about a file or directory.
> +        * @throws SVNClientException
> +        */
> +       public ISVNInfo[] getInfo(File file, boolean descend) throws SVNClientException;
>
>        /**
>         * Get information about an URL.
>
> Modified: trunk/svnClientAdapter/src/javahl/org/tigris/subversion/svnclientadapter/javahl/AbstractJhlClientAdapter.java
> Url: http://subclipse.tigris.org/source/browse/subclipse/trunk/svnClientAdapter/src/javahl/org/tigris/subversion/svnclientadapter/javahl/AbstractJhlClientAdapter.java?view=diff&pathrev=4360&r1=4359&r2=4360
> ==============================================================================
> --- trunk/svnClientAdapter/src/javahl/org/tigris/subversion/svnclientadapter/javahl/AbstractJhlClientAdapter.java       (original)
> +++ trunk/svnClientAdapter/src/javahl/org/tigris/subversion/svnclientadapter/javahl/AbstractJhlClientAdapter.java       2009-03-19 14:04:56-0700
> @@ -1808,6 +1808,38 @@
>        }
>
>        /* (non-Javadoc)
> +        * @see org.tigris.subversion.svnclientadapter.ISVNClientAdapter#getInfo(java.io.File, boolean)
> +        */
> +       public ISVNInfo[] getInfo(File path, boolean descend) throws SVNClientException {
> +               try {
> +                       notificationHandler.setCommand(ISVNNotifyListener.Command.INFO);
> +                       String target = fileToSVNPath(path, false);
> +                       if (descend) notificationHandler.logCommandLine("info " + target + " --depth=infinity");
> +                       else notificationHandler.logCommandLine("info " + target);
> +                       notificationHandler.setBaseDir(SVNBaseDir.getBaseDir(path));
> +                       List infoList = new ArrayList();
> +                       Info info = svnClient.info(target);
> +                       if (info == null) {
> +                               infoList.add(new SVNInfoUnversioned(path));
> +                       } else {
> +                               Info2[] infos = svnClient.info2(target, null, null, true);
> +                               if (infos == null || infos.length == 0) {
> +                                       infoList.add(new SVNInfoUnversioned(path));
> +                               } else {
> +                                       for (int i = 0; i < infos.length; i++)
> +                                               infoList.add(new JhlInfo2(path,infos[i]));
> +                               }
> +                       }
> +                       ISVNInfo[] infoArray = new ISVNInfo[infoList.size()];
> +                       infoList.toArray(infoArray);
> +                       return infoArray;
> +               } catch (ClientException e) {
> +                       notificationHandler.logException(e);
> +                       throw new SVNClientException(e);
> +               }
> +       }
> +
> +       /* (non-Javadoc)
>         * @see org.tigris.subversion.svnclientadapter.ISVNClientAdapter#getInfo(org.tigris.subversion.svnclientadapter.SVNUrl)
>         */
>        public ISVNInfo getInfo(SVNUrl url, SVNRevision revision, SVNRevision peg) throws SVNClientException {
>
> ------------------------------------------------------
> http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=3541&dsMessageId=1357948
>
> To unsubscribe from this discussion, please e-mail [unsubscribeURL]
>

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=1357991
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_subclipse.tigris.org].
Received on 2009-03-19 22:18:18 CET

This is an archived mail posted to the Subclipse Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.