Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/convert/git.py @ 4806:15a3cbfc6568
convert: call superclass init from engine init functions
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 05 Jul 2007 12:00:04 -0700 |
parents | f52bfe566583 |
children | c2d529f288a1 |
comparison
equal
deleted
inserted
replaced
4800:6aa1fae4c28a | 4806:15a3cbfc6568 |
---|---|
7 class convert_git(converter_source): | 7 class convert_git(converter_source): |
8 def gitcmd(self, s): | 8 def gitcmd(self, s): |
9 return os.popen('GIT_DIR=%s %s' % (self.path, s)) | 9 return os.popen('GIT_DIR=%s %s' % (self.path, s)) |
10 | 10 |
11 def __init__(self, ui, path, rev=None): | 11 def __init__(self, ui, path, rev=None): |
12 super(convert_git, self).__init__(ui, path, rev=rev) | |
13 | |
12 if os.path.isdir(path + "/.git"): | 14 if os.path.isdir(path + "/.git"): |
13 path += "/.git" | 15 path += "/.git" |
14 if not os.path.exists(path + "/objects"): | 16 if not os.path.exists(path + "/objects"): |
15 raise NoRepo("couldn't open GIT repo %s" % path) | 17 raise NoRepo("couldn't open GIT repo %s" % path) |
16 | 18 |