Mercurial > hg
comparison hgext/convert/p4.py @ 30602:b36a0fa7f969
convert: do not provide head revisions if we have no changests to import
Don't set a head revision in cases where we have a revmap but no
changesets to import, as convertcmd.convert() treats them as heads of
to-imported revisions.
author | David Soria Parra <davidsp@fb.com> |
---|---|
date | Tue, 13 Dec 2016 21:49:58 -0800 |
parents | d47a01bf0059 |
children | db9e883566e8 |
comparison
equal
deleted
inserted
replaced
30601:d47a01bf0059 | 30602:b36a0fa7f969 |
---|---|
226 self.changeset[change] = c | 226 self.changeset[change] = c |
227 self.files[change] = files | 227 self.files[change] = files |
228 self.copies[change] = copies | 228 self.copies[change] = copies |
229 lastid = change | 229 lastid = change |
230 | 230 |
231 if lastid: | 231 if lastid and len(self.changeset) > 0: |
232 self.heads = [lastid] | 232 self.heads = [lastid] |
233 | 233 |
234 def getheads(self): | 234 def getheads(self): |
235 return self.heads | 235 return self.heads |
236 | 236 |