Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 482:84d5ddf82856
Removed some unused variables.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Removed some unused variables.
manifest hash: 89f5eba2fb642276b32d13dc12fe4c72448e47e4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCvquwW7P1GVgWeRoRAuLCAJ4lzcbSrQT2m+Kqxgktvih5FRlM9wCgmYDh
a8QVhV8JyZBi5BbRNV2RHSo=
=YpXM
-----END PGP SIGNATURE-----
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 26 Jun 2005 14:20:48 +0100 |
parents | 2705d20f77c9 |
children | 934279f3ca53 |
comparison
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) |