Submitter | Sean Farley |
---|---|
Date | May 15, 2014, 9:16 p.m. |
Message ID | <fc447ebc4465a7e53bea.1400188588@laptop.local> |
Download | mbox | patch |
Permalink | /patch/4769/ |
State | Accepted |
Commit | 6d7dcabb843fbe7fc03b3f17ba2eb32c1f0cd2f6 |
Headers | show |
Comments
On 05/15/2014 02:16 PM, Sean Farley wrote: > # HG changeset patch > # User Sean Farley <sean.michael.farley@gmail.com> > # Date 1398136379 18000 > # Mon Apr 21 22:12:59 2014 -0500 > # Node ID fc447ebc4465a7e53beafa1a5ffb3e151a8c4b47 > # Parent 232598babb1191bceaa31f13d860568c795352bf > workingctx: add _prestatus method to call _dirstatestatus More details needed > > diff --git a/mercurial/context.py b/mercurial/context.py > --- a/mercurial/context.py > +++ b/mercurial/context.py > @@ -1267,10 +1267,13 @@ class workingctx(committablectx): > for f in removed: > if f in mf: > del mf[f] > return mf > > + def _prestatus(self, other, s, match, listignored, listclean, listunknown): more docstring needed > + return self._dirstatestatus(match, listignored, listclean, listunknown) > + > def _dirstatestatus(self, match=None, ignored=False, clean=False, > unknown=False): > '''Gets the status from the dirstate -- internal use only.''' > listignored, listclean, listunknown = ignored, clean, unknown > match = match or matchmod.always(self._repo.root, self._repo.getcwd())
Pierre-Yves David <pierre-yves.david@ens-lyon.org> writes: > On 05/15/2014 02:16 PM, Sean Farley wrote: >> # HG changeset patch >> # User Sean Farley <sean.michael.farley@gmail.com> >> # Date 1398136379 18000 >> # Mon Apr 21 22:12:59 2014 -0500 >> # Node ID fc447ebc4465a7e53beafa1a5ffb3e151a8c4b47 >> # Parent 232598babb1191bceaa31f13d860568c795352bf >> workingctx: add _prestatus method to call _dirstatestatus > > More details needed Ok, I'll add more like the other one. >> diff --git a/mercurial/context.py b/mercurial/context.py >> --- a/mercurial/context.py >> +++ b/mercurial/context.py >> @@ -1267,10 +1267,13 @@ class workingctx(committablectx): >> for f in removed: >> if f in mf: >> del mf[f] >> return mf >> >> + def _prestatus(self, other, s, match, listignored, listclean, listunknown): > > more docstring needed Ok.
Patch
diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -1267,10 +1267,13 @@ class workingctx(committablectx): for f in removed: if f in mf: del mf[f] return mf + def _prestatus(self, other, s, match, listignored, listclean, listunknown): + return self._dirstatestatus(match, listignored, listclean, listunknown) + def _dirstatestatus(self, match=None, ignored=False, clean=False, unknown=False): '''Gets the status from the dirstate -- internal use only.''' listignored, listclean, listunknown = ignored, clean, unknown match = match or matchmod.always(self._repo.root, self._repo.getcwd())