[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Strip string locations before commit po file

From: Dongsheng Song <dongsheng.song_at_gmail.com>
Date: Thu, 19 Feb 2009 09:42:42 +0800

The current diff very large and hard to read or review(e.g. r35966):
% svn diff -c 35966 | diffstat
 es.po | 5255 ++++++++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 3047 insertions(+), 2208 deletions(-)

If we strip location:
% diff es-r31547.po.no es-r35966.po.no | diffstat
 unknown | 1804 +++++++++++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 1280 insertions(+), 524 deletions(-)

As we can see, the diff much smaller(5255 => 1804) and clear.

So I suggest we sort by file, and strip string locations before commit po file:

    msgcat --width=80 --sort-by-file -o tmp.po xx.po
    msgcat --width=80 --no-location -o xx.po tmp.po
    rm tmp.po

---
Dongsheng Song
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1189298
Received on 2009-02-19 02:44:21 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.