Mercurial > hg
comparison hgext/convert/hg.py @ 5016:4ebc8693ce72
convert: add filename filtering and renaming support
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu, 26 Jul 2007 13:34:36 -0700 |
parents | 914054ca532e |
children | 06329efa722d |
comparison
equal
deleted
inserted
replaced
5015:cb100605a516 | 5016:4ebc8693ce72 |
---|---|
57 #self.repo.remove([f]) | 57 #self.repo.remove([f]) |
58 except: | 58 except: |
59 pass | 59 pass |
60 | 60 |
61 def putcommit(self, files, parents, commit): | 61 def putcommit(self, files, parents, commit): |
62 seen = {} | 62 if not files: |
63 return hex(self.repo.changelog.tip()) | |
64 | |
65 seen = {hex(nullid): 1} | |
63 pl = [] | 66 pl = [] |
64 for p in parents: | 67 for p in parents: |
65 if p not in seen: | 68 if p not in seen: |
66 pl.append(p) | 69 pl.append(p) |
67 seen[p] = 1 | 70 seen[p] = 1 |