equal
deleted
inserted
replaced
212 hashes = re.findall(NODE_RE, commitmsg) |
212 hashes = re.findall(NODE_RE, commitmsg) |
213 unfi = repo.unfiltered() |
213 unfi = repo.unfiltered() |
214 for h in hashes: |
214 for h in hashes: |
215 try: |
215 try: |
216 fullnode = scmutil.resolvehexnodeidprefix(unfi, h) |
216 fullnode = scmutil.resolvehexnodeidprefix(unfi, h) |
217 except error.WdirUnsupported: |
217 except (error.WdirUnsupported, error.AmbiguousPrefixLookupError): |
218 # Someone has an fffff... in a commit message we're |
218 # Someone has an fffff... or some other prefix that's ambiguous in a |
219 # rewriting. Don't try rewriting that. |
219 # commit message we're rewriting. Don't try rewriting that. |
220 continue |
220 continue |
221 if fullnode is None: |
221 if fullnode is None: |
222 continue |
222 continue |
223 ctx = unfi[fullnode] |
223 ctx = unfi[fullnode] |
224 if not ctx.obsolete(): |
224 if not ctx.obsolete(): |