Mercurial > hg
comparison hgext/convert/subversion.py @ 4839:e20e40f67f0e
convert: svn: avoid parsing already-seen logentries due to branch following
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 05 Jul 2007 15:01:31 -0700 |
parents | 4cdbaa885d8a |
children | a265fe42abe7 |
comparison
equal
deleted
inserted
replaced
4838:61343b40a141 | 4839:e20e40f67f0e |
---|---|
188 entries = [] | 188 entries = [] |
189 rev = self.revid(revnum) | 189 rev = self.revid(revnum) |
190 parents = [] | 190 parents = [] |
191 | 191 |
192 # branch log might return entries for a parent we already have | 192 # branch log might return entries for a parent we already have |
193 if rev in self.commits: | 193 if (rev in self.commits or |
194 (revnum < self.lastrevs.get(self.module, 0))): | |
194 return | 195 return |
195 | 196 |
196 try: | 197 try: |
197 branch = self.module.split("/")[-1] | 198 branch = self.module.split("/")[-1] |
198 if branch == 'trunk': | 199 if branch == 'trunk': |