Submitter | phabricator |
---|---|
Date | Feb. 23, 2018, 10:36 a.m. |
Message ID | <differential-rev-PHID-DREV-lhdkfsxyhw3rbfvbeeny-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/28268/ |
State | Superseded |
Headers | show |
Comments
yuja added inline comments. INLINE COMMENTS > destutil.py:16 > scmutil, > + stack > ) Style nit: missing comma REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2397 To: lothiraldan, #hg-reviewers, indygreg Cc: yuja, mercurial-devel
Patch
diff --git a/mercurial/destutil.py b/mercurial/destutil.py --- a/mercurial/destutil.py +++ b/mercurial/destutil.py @@ -13,6 +13,7 @@ error, obsutil, scmutil, + stack ) def _destupdateobs(repo, clean): @@ -355,9 +356,7 @@ return None def stackbase(ui, repo): - # The histedit default base stops at public changesets, branchpoints, - # and merges, which is exactly what we want for a stack. - revs = scmutil.revrange(repo, [histeditdefaultrevset]) + revs = stack.getstack(repo) return revs.last() if revs else None def _statusotherbook(ui, repo):