•  » Beta testing
  •  » BSF how to know which are the modified files ?

#1 2004-11-17 10:50:34

vimages
Member
2004-03-27
2116

BSF how to know which are the modified files ?

hello boss,
the work about 1.4 is near to the end... I try to make now my gallery from the BSF files.

I have to make some changes, not so many but it's not very easy for me.. I try to do them myself, without help....   

I make another topic today with the modifications I do, I will put the all futur ones I will make.

people who want to see them can come on the site (see link below)
a public one (grey enter) with free acces and a private one (blue enter) for only registered visitors.

my question today is how can I know, for each new BSF, wich are the new or modified files ?
do you use a program for that ??

many thanks!!!
eric.

Offline

 

#2 2004-11-17 21:43:20

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14082

Re: BSF how to know which are the modified files ?

vimages wrote:

my question today is how can I know, for each new BSF, wich are the new or modified files ?
do you use a program for that ??

this for example ?

Code:

$ create_patch.pl --start=phpwebgallery-BSF_200411152245 --target=phpwebgallery-BSF_200411160800 --dry-run
M category.php
M picture.php
N random.php
M include/category_default.inc.php
M include/functions_category.inc.php

$ create_patch.pl --start=phpwebgallery-BSF_200411160800 --target=phpwebgallery-BSF_200411170043 --dry-run
M comments.php
M picture.php
M tools/create_listing_file.php
M install/dbscheme.txt
M install/phpwebgallery_structure.sql
M include/category_calendar.inc.php
M include/category_default.inc.php
M include/category_recent_cats.inc.php
M include/category_subcats.inc.php
M include/functions.inc.php
M admin/infos_images.php
M admin/picture_modify.php
M admin/remote_site.php
M admin/update.php
M admin/include/functions.php

(M = modified; N = new; D = deleted)

to know the exact differences, no better program than diff :

Code:

$ diff -u phpwebgallery-BSF_200411160800/comments.php phpwebgallery-BSF_200411170043/comments.php
--- phpwebgallery-BSF_200411160800/comments.php Sat Nov  6 22:12:59 2004
+++ phpwebgallery-BSF_200411170043/comments.php Wed Nov 17 00:38:34 2004
@@ -6,9 +6,9 @@
 // +-----------------------------------------------------------------------+
 // | branch        : BSF (Best So Far)
 // | file          : $RCSfile: comments.php,v $
-// | last update   : $Date: 2004/11/06 21:12:59 $
-// | last modifier : $Author: z0rglub $
-// | revision      : $Revision: 1.17 $
+// | last update   : $Date: 2004/11/16 23:38:34 $
+// | last modifier : $Author: plg $
+// | revision      : $Revision: 1.18 $
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
 // | it under the terms of the GNU General Public License as published by  |
@@ -140,7 +140,7 @@
   // for each picture, getting informations for displaying thumbnail and
   // link to the full size picture
   $query = '
-SELECT name,file,storage_category_id as cat_id,tn_ext
+SELECT name,file,storage_category_id as cat_id,tn_ext,path
   FROM '.IMAGES_TABLE.'
   WHERE id = '.$row['image_id'].'
 ;';
@@ -166,9 +166,7 @@
   }
   $name.= ' [ '.$subrow['file'].' ]';
   // source of the thumbnail picture
-  $thumbnail_src = get_thumbnail_src($subrow['file'],
-                                     $subrow['cat_id'],
-                                     @$subrow['tn_ext']);
+  $thumbnail_src = get_thumbnail_src($subrow['path'], @$subrow['tn_ext']);
   // link to the full size picture
   $url = PHPWG_ROOT_PATH.'picture.php?cat='.$category_id;
   $url.= '&image_id='.$row['image_id'];

+ = new line
- = deleted line
in vim, it gives :
http://www.le-gall.net/images/vim_diff.png

Offline

 
  •  » Beta testing
  •  » BSF how to know which are the modified files ?

Board footer

Powered by FluxBB