Mercurial > hg
comparison hgext/convert/common.py @ 21635:5f2cc464e502
convert: introduce hascommitfrommap sink method
Mercurial has stable revision identifiers and rollback and strip. Revisions
referenced in the shamap are thus not necessarily still present but we can
easily check for it.
Subversion do not have stable identifiers and no rollback or strip(?). We must
thus assume that all revisions referenced from a shamap still must be present.
This method is similar to hascommitforsplicemap but different ...
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 19 May 2014 22:12:30 +0200 |
parents | 23b24d6a70c8 |
children | 650b5b6e75ed |
comparison
equal
deleted
inserted
replaced
21634:23b24d6a70c8 | 21635:5f2cc464e502 |
---|---|
257 | 257 |
258 bookmarks: {bookmarkname: sink_rev_id, ...} | 258 bookmarks: {bookmarkname: sink_rev_id, ...} |
259 where bookmarkname is an UTF-8 string. | 259 where bookmarkname is an UTF-8 string. |
260 """ | 260 """ |
261 pass | 261 pass |
262 | |
263 def hascommitfrommap(self, rev): | |
264 """Return False if a rev mentioned in a filemap is known to not be | |
265 present.""" | |
266 raise NotImplementedError | |
262 | 267 |
263 def hascommitforsplicemap(self, rev): | 268 def hascommitforsplicemap(self, rev): |
264 """This method is for the special needs for splicemap handling and not | 269 """This method is for the special needs for splicemap handling and not |
265 for general use. Returns True if the sink contains rev, aborts on some | 270 for general use. Returns True if the sink contains rev, aborts on some |
266 special cases.""" | 271 special cases.""" |