summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8a2820d)
raw | patch | inline | side by side (parent: 8a2820d)
author | Simon Hausmann <simon@lst.de> | |
Thu, 17 May 2007 18:15:47 +0000 (20:15 +0200) | ||
committer | Simon Hausmann <simon@lst.de> | |
Thu, 17 May 2007 18:15:47 +0000 (20:15 +0200) |
to use for the current import by looking at the p4 tags. The current approach of using
the log message works better.
Signed-off-by: Simon Hausmann <simon@lst.de>
the log message works better.
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4 | patch | blob | history |
index 910c69b534e3a5ba7de6301917a2974394e39052..a19ba474818d502794f2ee911d069f4a316721a7 100755 (executable)
if self.detectLabels:
self.getLabels();
- if len(self.changeRange) == 0:
- try:
- sout, sin, serr = popen2.popen3("git name-rev --tags `git rev-parse %s`" % self.branch)
- output = sout.read()
- if output.endswith("\n"):
- output = output[:-1]
- tagIdx = output.index(" tags/p4/")
- caretIdx = output.find("^")
- endPos = len(output)
- if caretIdx != -1:
- endPos = caretIdx
- self.rev = int(output[tagIdx + 9 : endPos]) + 1
- self.changeRange = "@%s,#head" % self.rev
- self.initialParent = parseRevision(self.branch)
- except:
- pass
-
self.tz = "%+03d%02d" % (- time.timezone / 3600, ((- time.timezone % 3600) / 60))
importProcess = subprocess.Popen(["git", "fast-import"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE);