Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Sorry, but svn log -v works. You're either not looking at the code or you didn't commit a delete on the file.

    • Even though Shlomi Fish grilled me for about half an hour on what I did and how I did it to find the missing file, I will show it here as well anyway, because "Seeing is believing".

      xsawyerx@gnubuntu:~/code/admin/My-App$ svn status
      ?      output_log.txt
      M      Changes

      xsawyerx@gnubuntu:~/code/admin/My-App$ svn log -v | grep 10-eg_server.t -B 6
      ------------------------------------------------------------------------
      r12 529 | yaronm | 2009-04-12 18:34:49 +0300 (Sun, 12 Apr 2009) | 1 line
      Changed paths:
         A /admin/devel
         A /admin/devel/My-App
         A /admin/devel/My-App/.cvsignore
         A /admin/devel/My-App/10-eg_server.t

      xsawyerx@gnubuntu:~/code/admin/My-App$ svn log -v -r 13831
      ------------------------------------------------------------------------
      r13831 | yaronm | 2009-05-25 18:50:13 +0300 (Mon, 25 May 2009) | 1 line
      Changed paths:
         D /admin/devel/My-App/10-eg_server.t
         D /admin/devel/My-App/configure_server_service.pl

      removing deprecated helper scripts
      ----------------------------------------------------------------------- -

      As you can see, svn status shows that I have one changed file (Changes) and one untracked file (output_log.txt), so I have no uncommitted deletions or additions.

      When I search svn log for a file called 10-eg_server.t, I can only see that it was added, along with the actual path.

      However, when I ask for the log of a specific revision (r13831), I can see the deletion of the file 10-eg_server.t, along with another file. The problem here is that svn log -v will return only certain things without any persistency (it will show changes as well as additions and deletions but this time it only showed the addition of the file, not deletion), and return other things when asking for the log of a specific revision.

      So, subversion is stupid.

      But thank you for automatically assuming Subversion is impeccable, and I was wrong.

      • I wasn't trying to be insulting. It's only reasonable to look for user mistakes or misunderstanding before assuming that a behavior in a widely used piece of software is a bug. Think of how many times people have reported they found a bug in Perl and how many times they actually had.

        I suspect there's an answer for this one involving either how the paths under CWD are figured or which revisions are shown when no number is specified. If you actually want to solve it, I suspect you'd be better off asking on