hgext/convert/filemap.py
changeset 41180 69804c040a04
parent 41179 77088fa862df
child 43076 2372284d9457
equal deleted inserted replaced
41179:77088fa862df 41180:69804c040a04
   303         except NotImplementedError:
   303         except NotImplementedError:
   304             raise error.Abort(_("source repository doesn't support --filemap"))
   304             raise error.Abort(_("source repository doesn't support --filemap"))
   305         for f in files:
   305         for f in files:
   306             if self.filemapper(f):
   306             if self.filemapper(f):
   307                 return True
   307                 return True
   308         return False
   308 
       
   309         # The include directive is documented to include nothing else (though
       
   310         # valid branch closes are included).
       
   311         if self.filemapper.include:
       
   312             return False
       
   313 
       
   314         # Allow empty commits in the source revision through.  The getchanges()
       
   315         # method doesn't even bother calling this if it determines that the
       
   316         # close marker is significant (i.e. all of the branch ancestors weren't
       
   317         # eliminated).  Therefore if there *is* a close marker, getchanges()
       
   318         # doesn't consider it significant, and this revision should be dropped.
       
   319         return not files and 'close' not in self.commits[rev].extra
   309 
   320 
   310     def mark_not_wanted(self, rev, p):
   321     def mark_not_wanted(self, rev, p):
   311         # Mark rev as not interesting and update data structures.
   322         # Mark rev as not interesting and update data structures.
   312 
   323 
   313         if p is None:
   324         if p is None: