comparison mercurial/hg.py @ 312:09375250eb31

Optimize diff and status in subdirectories -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Optimize diff and status in subdirectories This walks the tree from the subdirectory down. Based on a patch by Arun Sharma manifest hash: 3a8545369b4eb6911b9d0fcdd8e4dc77784fa3d8 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCrF6/ywK+sNU5EO8RAosUAKC0KWcMfsLErEInDk1X1vpM54HFEgCfUwcN gXhaAviQZJ8h0ssl3BMmMfI= =KnRD -----END PGP SIGNATURE-----
author mpm@selenic.com
date Sun, 12 Jun 2005 08:11:43 -0800
parents 3b17056b72dc
children e75ea4662d81
comparison
equal deleted inserted replaced
311:3b17056b72dc 312:09375250eb31
549 def fcmp(fn): 549 def fcmp(fn):
550 t1 = self.wfile(fn).read() 550 t1 = self.wfile(fn).read()
551 t2 = self.file(fn).revision(mf[fn]) 551 t2 = self.file(fn).revision(mf[fn])
552 return cmp(t1, t2) 552 return cmp(t1, t2)
553 553
554 for dir, subdirs, files in os.walk(self.root): 554 for dir, subdirs, files in os.walk(path):
555 d = dir[len(self.root)+1:] 555 d = dir[len(self.root)+1:]
556 if ".hg" in subdirs: subdirs.remove(".hg") 556 if ".hg" in subdirs: subdirs.remove(".hg")
557 557
558 for f in files: 558 for f in files:
559 fn = os.path.join(d, f) 559 fn = os.path.join(d, f)