Show More
@@ -126,14 +126,16 b' class p4_source(common.converter_source)' | |||
|
126 | 126 | |
|
127 | 127 | # handle revision limiting |
|
128 | 128 | startrev = self.ui.config('convert', 'p4.startrev', default=0) |
|
129 | self.p4changes = [x for x in self.p4changes | |
|
130 | if ((not startrev or int(x) >= int(startrev)) and | |
|
131 | (not self.revs or int(x) <= int(self.revs[0])))] | |
|
132 | 129 | |
|
133 | 130 | # now read the full changelists to get the list of file revisions |
|
134 | 131 | ui.status(_('collecting p4 changelists\n')) |
|
135 | 132 | lastid = None |
|
136 | 133 | for change in self.p4changes: |
|
134 | if startrev and int(change) < int(startrev): | |
|
135 | continue | |
|
136 | if self.revs and int(change) > int(self.revs[0]): | |
|
137 | continue | |
|
138 | ||
|
137 | 139 | cmd = "p4 -G describe -s %s" % change |
|
138 | 140 | stdout = util.popen(cmd, mode='rb') |
|
139 | 141 | d = marshal.load(stdout) |
General Comments 0
You need to be logged in to leave comments.
Login now