Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 21710:14514dd542aa
memfilectx: add a size method
This method is needed to have memfilectx behave like the other file
contexts. We can't just inherit this method because each file context has
different behavior: filectx reads from the filelog, and workingfilectx reads
from the disk. Therefore, we define memfilectx to return the size of the data
in memory.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Tue, 03 Jun 2014 13:49:51 -0700 |
parents | 5b2a2bea8cb6 |
children | bc773e9505e3 |
line wrap: on
line diff