##// END OF EJS Templates
grammar: use does instead of do where appropriate
timeless@mozdev.org -
r26779:aaa33ec3 default
parent child Browse files
Show More
@@ -137,7 +137,7 b' class bzr_source(converter_source):'
137
137
138 def getchanges(self, version, full):
138 def getchanges(self, version, full):
139 if full:
139 if full:
140 raise error.Abort(_("convert from cvs do not support --full"))
140 raise error.Abort(_("convert from cvs does not support --full"))
141 self._modecache = {}
141 self._modecache = {}
142 self._revtree = self.sourcerepo.revision_tree(version)
142 self._revtree = self.sourcerepo.revision_tree(version)
143 # get the parentids from the cache
143 # get the parentids from the cache
@@ -263,7 +263,7 b' class convert_cvs(converter_source):'
263
263
264 def getchanges(self, rev, full):
264 def getchanges(self, rev, full):
265 if full:
265 if full:
266 raise error.Abort(_("convert from cvs do not support --full"))
266 raise error.Abort(_("convert from cvs does not support --full"))
267 self._parse()
267 self._parse()
268 return sorted(self.files[rev].iteritems()), {}, set()
268 return sorted(self.files[rev].iteritems()), {}, set()
269
269
@@ -158,7 +158,7 b' class darcs_source(converter_source, com'
158
158
159 def getchanges(self, rev, full):
159 def getchanges(self, rev, full):
160 if full:
160 if full:
161 raise error.Abort(_("convert from darcs do not support --full"))
161 raise error.Abort(_("convert from darcs does not support --full"))
162 copies = {}
162 copies = {}
163 changes = []
163 changes = []
164 man = None
164 man = None
@@ -210,7 +210,7 b' class convert_git(converter_source):'
210
210
211 def getchanges(self, version, full):
211 def getchanges(self, version, full):
212 if full:
212 if full:
213 raise error.Abort(_("convert from git do not support --full"))
213 raise error.Abort(_("convert from git does not support --full"))
214 self.modecache = {}
214 self.modecache = {}
215 fh = self.gitopen("git diff-tree -z --root -m -r %s %s" % (
215 fh = self.gitopen("git diff-tree -z --root -m -r %s %s" % (
216 self.simopt, version))
216 self.simopt, version))
@@ -144,7 +144,7 b' class gnuarch_source(converter_source, c'
144
144
145 def getchanges(self, rev, full):
145 def getchanges(self, rev, full):
146 if full:
146 if full:
147 raise error.Abort(_("convert from arch do not support --full"))
147 raise error.Abort(_("convert from arch does not support --full"))
148 self._update(rev)
148 self._update(rev)
149 changes = []
149 changes = []
150 copies = {}
150 copies = {}
@@ -229,7 +229,8 b' class monotone_source(converter_source, '
229
229
230 def getchanges(self, rev, full):
230 def getchanges(self, rev, full):
231 if full:
231 if full:
232 raise error.Abort(_("convert from monotone do not support --full"))
232 raise error.Abort(_("convert from monotone does not support "
233 "--full"))
233 revision = self.mtnrun("get_revision", rev).split("\n\n")
234 revision = self.mtnrun("get_revision", rev).split("\n\n")
234 files = {}
235 files = {}
235 ignoremove = {}
236 ignoremove = {}
@@ -277,7 +277,7 b' class p4_source(converter_source):'
277
277
278 def getchanges(self, rev, full):
278 def getchanges(self, rev, full):
279 if full:
279 if full:
280 raise error.Abort(_("convert from p4 do not support --full"))
280 raise error.Abort(_("convert from p4 does not support --full"))
281 return self.files[rev], self.copies[rev], set()
281 return self.files[rev], self.copies[rev], set()
282
282
283 def getcommit(self, rev):
283 def getcommit(self, rev):
@@ -178,7 +178,7 b' def buildobsmarkerspart(bundler, markers'
178 remoteversions = bundle2.obsmarkersversion(bundler.capabilities)
178 remoteversions = bundle2.obsmarkersversion(bundler.capabilities)
179 version = obsolete.commonversion(remoteversions)
179 version = obsolete.commonversion(remoteversions)
180 if version is None:
180 if version is None:
181 raise ValueError('bundler do not support common obsmarker format')
181 raise ValueError('bundler does not support common obsmarker format')
182 stream = obsolete.encodemarkers(markers, True, version=version)
182 stream = obsolete.encodemarkers(markers, True, version=version)
183 return bundler.newpart('obsmarkers', data=stream)
183 return bundler.newpart('obsmarkers', data=stream)
184 return None
184 return None
General Comments 0
You need to be logged in to leave comments. Login now