comparison hgext/convert/common.py @ 34369:5adbd3806ef7

convert: remove superfluous pass statements
author Augie Fackler <augie@google.com>
date Sat, 30 Sep 2017 07:42:47 -0400
parents d5b2beca16c0
children 671aba341d90
comparison
equal deleted inserted replaced
34368:00cf44b7baa9 34369:5adbd3806ef7
103 # For normal full repo converts, this is always True. 103 # For normal full repo converts, this is always True.
104 return True 104 return True
105 105
106 def setrevmap(self, revmap): 106 def setrevmap(self, revmap):
107 """set the map of already-converted revisions""" 107 """set the map of already-converted revisions"""
108 pass
109 108
110 def getheads(self): 109 def getheads(self):
111 """Return a list of this repository's heads""" 110 """Return a list of this repository's heads"""
112 raise NotImplementedError 111 raise NotImplementedError
113 112
180 """ 179 """
181 raise NotImplementedError 180 raise NotImplementedError
182 181
183 def converted(self, rev, sinkrev): 182 def converted(self, rev, sinkrev):
184 '''Notify the source that a revision has been converted.''' 183 '''Notify the source that a revision has been converted.'''
185 pass
186 184
187 def hasnativeorder(self): 185 def hasnativeorder(self):
188 """Return true if this source has a meaningful, native revision 186 """Return true if this source has a meaningful, native revision
189 order. For instance, Mercurial revisions are store sequentially 187 order. For instance, Mercurial revisions are store sequentially
190 while there is no such global ordering with Darcs. 188 while there is no such global ordering with Darcs.
274 def setbranch(self, branch, pbranches): 272 def setbranch(self, branch, pbranches):
275 """Set the current branch name. Called before the first putcommit 273 """Set the current branch name. Called before the first putcommit
276 on the branch. 274 on the branch.
277 branch: branch name for subsequent commits 275 branch: branch name for subsequent commits
278 pbranches: (converted parent revision, parent branch) tuples""" 276 pbranches: (converted parent revision, parent branch) tuples"""
279 pass
280 277
281 def setfilemapmode(self, active): 278 def setfilemapmode(self, active):
282 """Tell the destination that we're using a filemap 279 """Tell the destination that we're using a filemap
283 280
284 Some converter_sources (svn in particular) can claim that a file 281 Some converter_sources (svn in particular) can claim that a file
285 was changed in a revision, even if there was no change. This method 282 was changed in a revision, even if there was no change. This method
286 tells the destination that we're using a filemap and that it should 283 tells the destination that we're using a filemap and that it should
287 filter empty revisions. 284 filter empty revisions.
288 """ 285 """
289 pass
290 286
291 def before(self): 287 def before(self):
292 pass 288 pass
293 289
294 def after(self): 290 def after(self):
298 """Put bookmarks into sink. 294 """Put bookmarks into sink.
299 295
300 bookmarks: {bookmarkname: sink_rev_id, ...} 296 bookmarks: {bookmarkname: sink_rev_id, ...}
301 where bookmarkname is an UTF-8 string. 297 where bookmarkname is an UTF-8 string.
302 """ 298 """
303 pass
304 299
305 def hascommitfrommap(self, rev): 300 def hascommitfrommap(self, rev):
306 """Return False if a rev mentioned in a filemap is known to not be 301 """Return False if a rev mentioned in a filemap is known to not be
307 present.""" 302 present."""
308 raise NotImplementedError 303 raise NotImplementedError