2010-07-09 5 views
0

J'essaie de configurer mercurial en utilisant le HgLogin J'ai le système de problème suivant. Je fait tout ce qui est nécessaire, mais quand j'ai essayé de me connecter à mon dépôt que je reçois cette réponse:Problème avec le script mercurial et hg-login tiers

remote: /home/mercurial/hg-login: line 1: use: command not found 
: command not foundrial/hg-login: line 1: 
: command not foundrial/hg-login: line 2: 
remote: /home/mercurial/hg-login: line 3: {PATH}: command not found 
: command not foundrial/hg-login: line 3: 
: command not foundrial/hg-login: line 4: 
remote: /home/mercurial/hg-login: line 5: my: command not found 
: command not foundrial/hg-login: line 5: 
remote: /home/mercurial/hg-login: line 6: my: command not found 
: command not foundrial/hg-login: line 6: 
: command not foundrial/hg-login: line 7: 
: command not foundrial/hg-login: line 11: 
remote: /home/mercurial/hg-login: line 12: my: command not found 
: command not foundrial/hg-login: line 12: 
remote: /home/mercurial/hg-login: line 13: my: command not found 
: command not foundrial/hg-login: line 13: 
: command not foundrial/hg-login: line 14: 
: command not foundrial/hg-login: line 18: 
remote: /home/mercurial/hg-login: line 19: my: command not found 
: command not foundrial/hg-login: line 19: 
remote: /home/mercurial/hg-login: line 20: my: command not found 
remote: /home/mercurial/hg-login: line 20: : command not found 
: command not foundrial/hg-login: line 20: 
: command not foundrial/hg-login: line 21: 
: command not foundrial/hg-login: line 25: 
remote: /home/mercurial/hg-login: line 26: defined: command not found 
remote: /home/mercurial/hg-login: line 27: or: command not found 
: command not foundrial/hg-login: line 27: 
remote: /home/mercurial/hg-login: line 28: syntax error near unexpected token `$user' 
'emote: /home/mercurial/hg-login: line 28: `my ($user) = $user_in =~ /^($r_user)$/ 

Il semble Perl ne va pas analyser le script. Vous pouvez trouver le script hglogin sur https://www.mercurial-scm.org/wiki/HgLogin

+0

s'il vous plaît utiliser la syntaxe de mise en forme :) – Aif

Répondre

1

Vous avez probablement ceci au début de votre script perl:

#!/bin/perl 

ou le chemin de votre perl système. Il semble que votre système exécute ce script comme s'il s'agissait d'un script shell et non d'un script Perl.

Questions connexes