Your message dated Tue, 14 Jul 2009 09:48:07 +0200
with message-id <[email protected]>
and subject line Already fixed upstream and in testing/unstable
has caused the Debian Bug report #531667,
regarding mercurial-common: git commands for hg convert are incorrect
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
531667: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531667
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mercurial-common
Version: 1.0.1-5.1
Severity: normal
Tags: patch
When trying to convert a git repository to a mercurial one on debian
lenny the following error occurs.
$ hg convert -s git .
assuming destination .-hg
abort: cannot find required "git" tool
This is because the convert tool assumes dashed git command names (e.g.
'git-rev-parse' instead of 'git rev-parse'). In lenny the git commands
were reorganized so that the full git-cmd names were no longer in the
default path and 'git cmd' must be used instead.
The fix seems relatively simple though.
-Ron
-- System Information:
Debian Release: 5.0.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.28.7-x200 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages mercurial-common depends on:
ii python 2.5.2-3 An interactive high-level object-o
ii python-support 0.8.4 automated rebuilding support for P
Versions of packages mercurial-common recommends:
ii mercurial 1.0.1-5.1 Scalable distributed version contr
mercurial-common suggests no packages.
-- no debconf information
--- a/hgext/convert/git.py
+++ b/hgext/convert/git.py
@@ -32,20 +32,20 @@
if not os.path.exists(path + "/objects"):
raise NoRepo("%s does not look like a Git repo" % path)
- checktool('git-rev-parse', 'git')
+ checktool('git', 'git')
self.path = path
def getheads(self):
if not self.rev:
- return self.gitcmd('git-rev-parse --branches').read().splitlines()
+ return self.gitcmd('git rev-parse --branches').read().splitlines()
else:
- fh = self.gitcmd("git-rev-parse --verify %s" % self.rev)
+ fh = self.gitcmd("git rev-parse --verify %s" % self.rev)
return [fh.read()[:-1]]
def catfile(self, rev, type):
if rev == "0" * 40: raise IOError()
- fh = self.gitcmd("git-cat-file %s %s" % (type, rev))
+ fh = self.gitcmd("git cat-file %s %s" % (type, rev))
return fh.read()
def getfile(self, name, rev):
@@ -56,7 +56,7 @@
def getchanges(self, version):
self.modecache = {}
- fh = self.gitcmd("git-diff-tree --root -m -r %s" % version)
+ fh = self.gitcmd("git diff-tree --root -m -r %s" % version)
changes = []
seen = {}
for l in fh:
@@ -109,7 +109,7 @@
def gettags(self):
tags = {}
- fh = self.gitcmd('git-ls-remote --tags "%s"' % self.path)
+ fh = self.gitcmd('git ls-remote --tags "%s"' % self.path)
prefix = 'refs/tags/'
for line in fh:
line = line.strip()
@@ -126,7 +126,7 @@
def getchangedfiles(self, version, i):
changes = []
if i is None:
- fh = self.gitcmd("git-diff-tree --root -m -r %s" % version)
+ fh = self.gitcmd("git diff-tree --root -m -r %s" % version)
for l in fh:
if "\t" not in l:
continue
@@ -134,7 +134,7 @@
changes.append(f)
fh.close()
else:
- fh = self.gitcmd('git-diff-tree --name-only --root -r %s "%s^%s"
--'
+ fh = self.gitcmd('git diff-tree --name-only --root -r %s "%s^%s"
--'
% (version, version, i+1))
changes = [f.rstrip('\n') for f in fh]
fh.close()
--- End Message ---
--- Begin Message ---
Package: mercurial
Version: 1.1.2-1
Hi,
Thanks for reporting this bug. However, I'm not sure it is important
enough so that release managers will allow an update of the mercurial
package in stable (ie lenny).
This bug has been fixed upstream as soon as 1.1.2 (so it is fixed in
testing and unstable).
If you use mercurial, the version in lenny is old. You can consider
using the 1.3 version. It is in unstable and, as soon as it reaches
testing (in about 8 days), I will upload a backported package for
lenny in www.backports.org.
If you want it immediately, you can get it on my personnal repo (see
my signature) but you will need to recompile it (I only build it for
amd64).
Regards,
Vincent
--
Vincent Danjean GPG key ID 0x9D025E87 [email protected]
GPG key fingerprint: FC95 08A6 854D DB48 4B9A 8A94 0BF7 7867 9D02 5E87
Unofficial pacakges: http://moais.imag.fr/membres/vincent.danjean/deb.html
APT repo: deb http://perso.debian.org/~vdanjean/debian unstable main
--- End Message ---