[PATCH 1 of 2 V3] dirstate: add callback to notify extensions about wd parent change

Yuya Nishihara yuya at tcha.org
Thu Aug 11 20:11:36 EDT 2016


On Thu, 11 Aug 2016 08:02:14 -0700, Mateusz Kwapich wrote:
> # HG changeset patch
> # User Mateusz Kwapich <mitrandir at fb.com>
> # Date 1470927641 25200
> #      Thu Aug 11 08:00:41 2016 -0700
> # Node ID ab4af8f1ddcae13159edf3eeea9fa4358c93babf
> # Parent  5e2365698d448c2a1d75f6a58e11ec65f66a0266
> dirstate: add callback to notify extensions about wd parent change

Queued the series, thanks.

>      def _writedirstate(self, st):
> +        # notify callbacks about parents change
> +        if self._origpl is not None and self._origpl != self._pl:
> +                for c, callback in sorted(self._plchangecallbacks.iteritems()):
> +                    callback(self, self._origpl, self._pl)
> +                self._origpl = None

Fixed excessive indent.


More information about the Mercurial-devel mailing list