D2397: show: use the new stack definition for show stack

2018-03-21 Thread yuja (Yuya Nishihara)
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
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D2397: show: use the new stack definition for show stack

2018-03-19 Thread lothiraldan (Boris Feld)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa72198790e15: show: use the new stack definition for show 
stack (authored by lothiraldan, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2397?vs=6011&id=7126

REVISION DETAIL
  https://phab.mercurial-scm.org/D2397

AFFECTED FILES
  mercurial/destutil.py

CHANGE DETAILS

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):



To: lothiraldan, #hg-reviewers, indygreg
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D2397: show: use the new stack definition for show stack

2018-02-23 Thread lothiraldan (Boris Feld)
lothiraldan created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Now that we have a common stack definition, use it in the hg show stack
  command.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2397

AFFECTED FILES
  mercurial/destutil.py

CHANGE DETAILS

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):



To: lothiraldan, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel