Retrieving time of modification

View: New views
7 Messages — Rating Filter:   Alert me  

Retrieving time of modification

by gnomie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

This may be a trivial question, but I have a hard time finding out. While introspecting an SVN workspace, I would like to retrieve the point in time some non-committed modification happened. SVNStatus however doesn't seem to say anything meaningful for the case of a "delete" or an "add". Any idea?

Thanks,
  Henning

Re: Retrieving time of modification

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Henning,

> This may be a trivial question, but I have a hard time finding out.
> While introspecting an SVN workspace, I would like to retrieve the point
> in time some non-committed modification happened. SVNStatus however
> doesn't seem to say anything meaningful for the case of a "delete" or an
> "add". Any idea?
Unfortunately there is no information on that in the working copy meta
data. When file is scheduled for addition or deletion, then .svn/entries
file is changed, but no time is written to that file.

I think the only case when you can get this information reliably is for
a file that has been scheduled for addition and has auto properties set.
Then '.svn/props/file.svn-work' timestamp will the time when file has
been scheduled for addition (but! setting properties on that file later
will change timestamp of that file).

In all other cases there is, I think, no way to get these times for
unversioned files, at least it is not stored within standard Subversion
working copy metadata.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!

Henning Blohm wrote:

> Hello!
>
> This may be a trivial question, but I have a hard time finding out.
> While introspecting an SVN workspace, I would like to retrieve the point
> in time some non-committed modification happened. SVNStatus however
> doesn't seem to say anything meaningful for the case of a "delete" or an
> "add". Any idea?
>
> Thanks,
>   Henning

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: Retrieving time of modification

by gnomie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Alexander,

  too bad... so I guess it will have to do without that.

Thanks!!

Henning




Am Montag, den 02.11.2009, 14:40 +0100 schrieb Alexander Kitaev:

> Hello Henning,
>
> > This may be a trivial question, but I have a hard time finding out.
> > While introspecting an SVN workspace, I would like to retrieve the point
> > in time some non-committed modification happened. SVNStatus however
> > doesn't seem to say anything meaningful for the case of a "delete" or an
> > "add". Any idea?
> Unfortunately there is no information on that in the working copy meta
> data. When file is scheduled for addition or deletion, then .svn/entries
> file is changed, but no time is written to that file.
>
> I think the only case when you can get this information reliably is for
> a file that has been scheduled for addition and has auto properties set.
> Then '.svn/props/file.svn-work' timestamp will the time when file has
> been scheduled for addition (but! setting properties on that file later
> will change timestamp of that file).
>
> In all other cases there is, I think, no way to get these times for
> unversioned files, at least it is not stored within standard Subversion
> working copy metadata.
>
> Alexander Kitaev,
> TMate Software,
> http://svnkit.com/ - Java [Sub]Versioning Library!
> http://sqljet.com/ - Java SQLite Library!
>
> Henning Blohm wrote:
> > Hello!
> >
> > This may be a trivial question, but I have a hard time finding out.
> > While introspecting an SVN workspace, I would like to retrieve the point
> > in time some non-committed modification happened. SVNStatus however
> > doesn't seem to say anything meaningful for the case of a "delete" or an
> > "add". Any idea?
> >
> > Thanks,
> >   Henning
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
> For additional commands, e-mail: svnkit-users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Cannot get commit message in http repository.

by Xiaoyu Du :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I hava a project in my svn server.
and I have some release tags at  http://192.168.10.100/myproject/tags/
(for example:
 version "1.0.0" at  http://192.168.10.100/myproject/tags/1.0.0,
 version "1.0.1" at http://192.168.10.100/myproject/tags/1.0.1,
) I use code:
        repository =
SVNRepositoryFactory.create(http://192.168.10.100/myproject/tags/);
        Collection entries = repository.getDir("", -1, null,
                                        (Collection) null);
to get the "1.0.0" and  "1.0.1" directories' commit messages, I got null
message.
But If I test this on my local filesystem
repository(file:///home/souldump/repos/sm/tags/), It works fine.
and I had invoked DAVRepositoryFactory.setup() and other *.setup.

my svn http service program is httpd with svn 1.6.1 WebDAV module.
Is this a bug?




---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: Cannot get commit message in http repository.

by Xiaoyu Du :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Forgive my impolite, I forgot to say hello.





---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: Cannot get commit message in http repository.

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Xiaoyu,

> my svn http service program is httpd with svn 1.6.1 WebDAV module.
> Is this a bug?
This is not a bug, but rather expected behavior.

Native Subversion client API doesn't provide commit message as part of
"getDir" (list) information, whatever access method you use (local, DAV
or svn).

In SVNKit we've added code that reports commit message as part of getDir
report, when local protocol access is used (because in this case revprop
file is anyway read, so there is no overhead). However, we couldn't do
that for network access methods - in those cases contents of report is
server responsibility.

So, as long as you use local repository access you may use that
optimization we have in SVNKit and get commit message along with other
information you receive from getDir method call. And for other access
methods I'd suggest you to use getRevisionPropertyValue method of
SVNRepository (see SVNRevisionProperty for property names).

Another option is to use SVNRepository.getDir with boolean parameter
'includeCommitMessages' - this method actually call getRevisionProperty
for each revision (but also cache retrived messages, so that same
messages is not fetched twice). However, this method is also
SVNKit-specific and do more than single request, while getDir(...) that
you're using has standard counterpart in the native Subversion protocol.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!

Xiaoyu Du wrote:

> I hava a project in my svn server.
> and I have some release tags at  http://192.168.10.100/myproject/tags/
> (for example:
>  version "1.0.0" at  http://192.168.10.100/myproject/tags/1.0.0,
>  version "1.0.1" at http://192.168.10.100/myproject/tags/1.0.1,
> ) I use code:
> repository =
> SVNRepositoryFactory.create(http://192.168.10.100/myproject/tags/);
> Collection entries = repository.getDir("", -1, null,
> (Collection) null);
> to get the "1.0.0" and  "1.0.1" directories' commit messages, I got null
> message.
> But If I test this on my local filesystem
> repository(file:///home/souldump/repos/sm/tags/), It works fine.
> and I had invoked DAVRepositoryFactory.setup() and other *.setup.
>
> my svn http service program is httpd with svn 1.6.1 WebDAV module.
> Is this a bug?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
> For additional commands, e-mail: svnkit-users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: Cannot get commit message in http repository.

by Xiaoyu Du :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Alexander:

Thanks for your reply. has helped me a great favor again.



---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...