equal
deleted
inserted
replaced
84 branchpath, rev=parents, update=False, |
84 branchpath, rev=parents, update=False, |
85 stream=True) |
85 stream=True) |
86 self.repo = hg.repository(self.ui, branchpath) |
86 self.repo = hg.repository(self.ui, branchpath) |
87 |
87 |
88 def putcommit(self, files, parents, commit): |
88 def putcommit(self, files, parents, commit): |
89 if not files: |
89 seen = {} |
90 return hex(self.repo.changelog.tip()) |
|
91 |
|
92 seen = {hex(nullid): 1} |
|
93 pl = [] |
90 pl = [] |
94 for p in parents: |
91 for p in parents: |
95 if p not in seen: |
92 if p not in seen: |
96 pl.append(p) |
93 pl.append(p) |
97 seen[p] = 1 |
94 seen[p] = 1 |