[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] [SubVersion] Hvornår blev en linie æn dret?



On Fri, 27 Feb 2009, Kristian Nørgaard wrote:

Er der nogen (overkommelig) måde hvorpå jeg kan spørge SubVersion i hvilken revision en given linie i en given fil blev ændret?

Hvis du vil hvem, hvornår og hvorfor en linje blev ændret, skal der lidt mere til.

Hvis du vil vide noget om linje 7 i AUTOEXEC.BAT, skriv da på een linje:

svn log -r $( svn praise AUTOEXEC.BAT | head -n 7
 | tail -n 1 | awk '{print $1}' ) AUTOEXEC.BAT

Resultatet kunne se sådan ud:
------------------------------------------------------------------------
r1234 | billg | 1980-01-05 09:53:09 +0800 (Sat, 05 Jan 1980) | 1 line

Uuuuupppps, did it again. Don't fix code on saturdays!
------------------------------------------------------------------------

Hvis det er noget du vil gøre tit, så pak det ind i et script.
Brud $1 til filnavn og $2 til linjenummer, så er det nemmere klippe ud hvis ouput kommer fra grep eller så.

/hans
--
Horsebakken 78, DK-2400 København NV, Phone: +45 2264 8020
-------------------------------------------------------------
Hvorfor er der nogle der siger, at julemanden ikke findes?
					-- Martha Schou


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-04-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *