Am Mittwoch, den 13.05.2009, 13:52 -0500 schrieb Steve Borho: > On Wed, May 13, 2009 at 1:38 PM, Simon Heimberg > <simohe-y/[email protected]> wrote: > > # HG changeset patch > > # User Simon Heimberg <simohe-y/[email protected]> > > # Date 1242153846 -7200 > > # Node ID f1f312568f15b791f42dc7ad4660c38e2cb11449 > > # Parent 1353b9e1e800b997286c33f77f184f86f24cd53a > > hglib: new function for invalidating a repo
(snip) > > +def invalidaterepo(repo): > > + repo.invalidate() > > + repo.dirstate.invalidate() > > Queued, thanks. I'm curious if these two lines are redundant? Never > looked into it close enough to find out. They are not. repo.invalidate invalidates the cached history (changelog, manifest, tags/branch cache and more), but not the dirstate. dirstate.invalidate invalidates the cached information about the working direcory. This includes the parents dir, the branch, the ignore patterns and information about the checked out files (mtime, ...). > > + if hasattr(repo, 'mq'): > > + mq = repo.mq > > + mqclass = mq.__class__ > > + repo.mq = mqclass(mq.ui, mq.basepath, mq.path) > > + > > + > > -- > Steve Borho ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Tortoisehg-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop
