mercurial/commands.py
changeset 482 84d5ddf82856
parent 481 2705d20f77c9
child 484 934279f3ca53
equal deleted inserted replaced
481:2705d20f77c9 482:84d5ddf82856
   237     node = repo.dirstate.parents()[0]
   237     node = repo.dirstate.parents()[0]
   238     if ops['revision']:
   238     if ops['revision']:
   239         node = repo.changelog.lookup(ops['revision'])
   239         node = repo.changelog.lookup(ops['revision'])
   240     change = repo.changelog.read(node)
   240     change = repo.changelog.read(node)
   241     mmap = repo.manifest.read(change[0])
   241     mmap = repo.manifest.read(change[0])
   242     maxuserlen = 0
       
   243     maxchangelen = 0
       
   244     for f in relpath(repo, (file,) + files):
   242     for f in relpath(repo, (file,) + files):
   245         lines = repo.file(f).annotate(mmap[f])
   243         lines = repo.file(f).annotate(mmap[f])
   246         pieces = []
   244         pieces = []
   247 
   245 
   248         for o, f in opmap:
   246         for o, f in opmap:
   776     }
   774     }
   777 
   775 
   778 norepo = "init version help debugindex debugindexdot"
   776 norepo = "init version help debugindex debugindexdot"
   779 
   777 
   780 def find(cmd):
   778 def find(cmd):
   781     i = None
       
   782     for e in table.keys():
   779     for e in table.keys():
   783         if re.match("(%s)$" % e, cmd):
   780         if re.match("(%s)$" % e, cmd):
   784             return table[e]
   781             return table[e]
   785 
   782 
   786     raise UnknownCommand(cmd)
   783     raise UnknownCommand(cmd)