Chez moi, LANG vaut fr_FR, ce qui fait que `svn info' place des espaces
avant (et après, bien sûr) les deux points :
brasilia ~/src/lrde-tools % svn info | head -2 14:13 #249
Chemin : .
URL :
https://svn.lrde.epita.fr/svn/lrde-tools/trunk
brasilia ~/src/lrde-tools % LANG=C svn info | head -2 14:13 #250
Path: .
URL:
https://svn.lrde.epita.fr/svn/lrde-tools/trunk
brasilia ~/src/lrde-tools %
https://svn.lrde.epita.fr/svn/lrde-tools/trunk
ChangeLog | 5 +++++
src/svndiff | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
* src/svndiff: Invoke svn info with the default (« C ») locale to
properly catch the URL of the repository.
Index: src/svndiff
--- src/svndiff (révision 223)
+++ src/svndiff (copie de travail)
@@ -1,7 +1,7 @@
#!/bin/sh
{
- svn info | sed -n '/^URL: /{s///;p;q;}'
+ LANG=C svn info | sed -n '/^URL: /{s///;p;q;}'
echo
svn diff --diff-cmd "`which diff`" -x "-w -u" $@ >$$.diffs
# Don't fail if missing.