Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: Seeing what the past revisions were for a file?

fsvs
Discussion topic

Back to topic list

Re: Seeing what the past revisions were for a file?

Author pmarek
Full name P.Marek
Date 2007-06-21 23:13:48 PDT
Message Hello Thomas!


> Is there the equivalent of the "svn log" command (i.e. "fsvs log")? For
> instance, I want to see which revisions changed my httpd.conf - so that
> I can do a diff between revisions.
No, not yet. But I'd think a simple shell-out to "svn log <url>" (where
URL is calculated internally), with -v propagated, should be easy ....
Would you like to try? Something similar is already done for diff.

That would mean that svn has to exist on the system ... but as we require
most of the libraries of subversion, the single additional binary
shouldn't matter.

Any other opinions?


> One way that I'm working around it is to do:
>
> # fsvs info /etc/httpd/conf/httpd.conf
> (snag the URL: into the clipboard)
Yes, that's what "fsvs info" is for :-)

> # svn log URL
> (see that it changed in revisions 29 & 33)
> # fsvs diff -r 29:33 /etc/httpd/conf/httpd.conf
>
> Alas that the "fsvs diff" doesn't understand the "-r PREV" syntax.
Hmm, PREV seems to be simple ...
  http://svnbook.red-b​ean.com/en/1.2/svn.t​our.revs.html#svn.to​ur.revs.keywords
says
  PREV The revision immediately before the last revision in which an item
        changed. (Technically, COMMITTED - 1.)

I'm not sure about the best way to get that into fsvs ... the -r parameter
is currently parsed only once, but PREV is variable per-entry ...

Possibly the best way would be to set a mark "is relative to entries'
revision, with offset X" - so just the "relative" flag would be needed.
Would you like to try, too?


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

« Previous message in topic | 2 of 2 | Next message in topic »

Messages

Show all messages in topic

Seeing what the past revisions were for a file? Thomas Harold <tgh at tgharold dot com> Thomas Harold <tgh at tgharold dot com> 2007-06-21 14:20:39 PDT
     Re: Seeing what the past revisions were for a file? pmarek P.Marek 2007-06-21 23:13:48 PDT
Messages per page: