summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e87f37a)
raw | patch | inline | side by side (parent: e87f37a)
author | Simon Hausmann <simon@lst.de> | |
Sun, 26 Aug 2007 14:04:34 +0000 (16:04 +0200) | ||
committer | Simon Hausmann <simon@lst.de> | |
Mon, 3 Sep 2007 18:35:13 +0000 (20:35 +0200) |
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4 | patch | blob | history |
index c00702c895eef2b0c21092e701750562a51eb361..d7c5becc0e06843701b5ebf17f8263088af7c0b8 100755 (executable)
self.depotPaths = sorted(args)
- self.revision = ""
+ revision = ""
self.users = {}
newPaths = []
if self.changeRange == "@all":
self.changeRange = ""
elif ',' not in self.changeRange:
- self.revision = self.changeRange
+ revision = self.changeRange
self.changeRange = ""
p = p[:atIdx]
elif p.find("#") != -1:
hashIdx = p.index("#")
- self.revision = p[hashIdx:]
+ revision = p[hashIdx:]
p = p[:hashIdx]
elif self.previousDepotPaths == []:
- self.revision = "#head"
+ revision = "#head"
p = re.sub ("\.\.\.$", "", p)
if not p.endswith("/"):
self.gitStream = importProcess.stdin
self.gitError = importProcess.stderr
- if self.revision:
- print "Doing initial import of %s from revision %s into %s" % (' '.join(self.depotPaths), self.revision, self.branch)
+ if revision:
+ print "Doing initial import of %s from revision %s into %s" % (' '.join(self.depotPaths), revision, self.branch)
details = { "user" : "git perforce import user", "time" : int(time.time()) }
details["desc"] = ("Initial import of %s from the state at revision %s"
- % (' '.join(self.depotPaths), self.revision))
- details["change"] = self.revision
+ % (' '.join(self.depotPaths), revision))
+ details["change"] = revision
newestRevision = 0
fileCnt = 0
for info in p4CmdList("files "
+ ' '.join(["%s...%s"
- % (p, self.revision)
+ % (p, revision)
for p in self.depotPaths])):
if info['code'] == 'error':