comparison hgext/convert/git.py @ 5528:6ffca2bf23da

merge with crew-stable
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 09 Nov 2007 21:24:25 -0200
parents 4d38e6970b8c 03496d4fa509
children 30d2fecaab76
comparison
equal deleted inserted replaced
5515:b11c855cde96 5528:6ffca2bf23da
28 super(convert_git, self).__init__(ui, path, rev=rev) 28 super(convert_git, self).__init__(ui, path, rev=rev)
29 29
30 if os.path.isdir(path + "/.git"): 30 if os.path.isdir(path + "/.git"):
31 path += "/.git" 31 path += "/.git"
32 if not os.path.exists(path + "/objects"): 32 if not os.path.exists(path + "/objects"):
33 raise NoRepo("couldn't open GIT repo %s" % path) 33 raise NoRepo("%s does not look like a Git repo" % path)
34 34
35 checktool('git-rev-parse', 'git') 35 checktool('git-rev-parse', 'git')
36 36
37 self.path = path 37 self.path = path
38 38