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

svnmerge.py needs LC_ALL=C [Fwd: If you expect me to speak your language, just let me know, stupid!]

From: Nik Clayton <nik_at_ngo.org.uk>
Date: 2007-01-30 15:57:51 CET

I'll file this as a proper issue later if no one picks it up -- this just
came across another mailing list I'm on.

N

-------- Original Message --------
Subject: If you expect me to speak your language, just let me know, stupid!
Date: Tue, 30 Jan 2007 13:54:11 +0100
From: book@cpan.org
To: hate@hates-software.com

I was just beginning to hate SVN, because it thinks I'm the one who
should make the bookkeeping for the merges (gee, I really wonder why
I use a computer...), when I found a tool to help me: svnmerge.py.

A quick look at the manual^Wwiki, and I'm ready to roll:

     $ svnmerge init -v -v
     svn propget --strict "svnmerge-integrated" "."
     svnmerge: calculate head path for the branch
     svn info "."
     Traceback (most recent call last):
       File "/usr/bin/svnmerge", line 1946, in ?
         main(sys.argv[1:])
       File "/usr/bin/svnmerge", line 1886, in main
         cf_head, cf_rev = get_copyfrom(branch_dir)
       File "/usr/bin/svnmerge", line 764, in get_copyfrom
         repos_path = target_to_repos_relative_path(dir)
       File "/usr/bin/svnmerge", line 754, in target_to_repos_relative_path
         root = get_repo_root(target)
       File "/usr/bin/svnmerge", line 726, in get_repo_root
         url = target_to_url(dir)
       File "/usr/bin/svnmerge", line 714, in target_to_url
         return info["URL"]
     KeyError: 'URL'

Oh well, that's a nice error message. I take a hard look at the pile of
puke at the bottom of my screen (I'm a Perl programmer, I don't want to
look at your source code), read the output of svnmerge help int, change
a few commands, try again, only to get some more puke, of a slightly
different shade.

Does svnmerge hate me because I'm French, or what?

Well, I guess I'll have to look at the source, then...
So, I try the command it uses, to find out what it does:

     Chemin : .
     URL : svn://svn.mongueurs.net/act/branches/stable
     Racine du dépôt : svn://svn.mongueurs.net/act
     UUID du dépôt : 67b57a05-4208-db11-a765-00306e02d86a
     Révision : 1036
     Type de noeud : répertoire
     Tâche programmée : normale
     Auteur de la dernière modification : book
     Révision de la dernière modification : 1036
     Date de la dernière modification: 2007-01-30 13:14:10 +0100 (mar, 30
jan 2007)

What was the code reading that, already?

     key, value = L.split(": ", 1)

Mmm. And what is the failing command?

     return info["URL"]

Oh yeah. Poor thing, looking for the "URL" key, when it's actually named
"URL ". So it *really* hates me because I'm French.

     $ LC_ALL=C svnmerge init
     property 'svnmerge-integrated' set on '.'

I guess I just have to forward my hate to the svnmerge.py developers.

-- 
  Philippe "BooK" Bruhat
  A little work with your brain can save you a lot of work with your body.
                                     (Moral from Groo The Wanderer #40 (Epic))
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jan 30 15:58:40 2007

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.