>
>
> IMHO, we shouldn't add this kind of branch to every place where wdir()
> could
> be passed. That would be error-prone and could hurt performance of
> non-wdir()
> cases.
>
​​
​I agree.​


> Instead, I'm thinking of adding WdirRevIsNotSupportedByUnderlyingStorage
> exception. It will be raised by revlog if wdir revision is passed, for
> example,
> and be caught where we know workingctx and fall back to slow ctx-lookup
> path.
>

​Okay I will work in this direction to fix this.​
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to