mercurial/rewriteutil.py
changeset 49084 ea98850a136e
parent 48992 bde2e4ef968a
parent 49060 532b649c1deb
child 50643 cbcbf63b6dbf
equal deleted inserted replaced
49083:1c00777702da 49084:ea98850a136e
   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():