Changeset - 52983fa97f49
[Not reviewed]
default
0 1 0
Mads Kiilerich - 8 years ago 2018-05-11 14:26:48
mads@kiilerich.com
hg: support rename of obsolete related attributes in Mercurial 4.6

The internals and the UI should perhaps also change at some point.
1 file changed with 12 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/vcs/backends/hg/changeset.py
Show inline comments
 
@@ -54,11 +54,17 @@ class MercurialChangeset(BaseChangeset):
 

	
 
    @LazyProperty
 
    def bumped(self):
 
        return self._ctx.bumped()
 
        try:
 
            return self._ctx.phasedivergent()
 
        except AttributeError: # renamed in Mercurial 4.6 (9fa874fb34e1)
 
            return self._ctx.bumped()
 

	
 
    @LazyProperty
 
    def divergent(self):
 
        return self._ctx.divergent()
 
        try:
 
            return self._ctx.contentdivergent()
 
        except AttributeError: # renamed in Mercurial 4.6 (8b2d7684407b)
 
            return self._ctx.divergent()
 

	
 
    @LazyProperty
 
    def extinct(self):
 
@@ -66,7 +72,10 @@ class MercurialChangeset(BaseChangeset):
 

	
 
    @LazyProperty
 
    def unstable(self):
 
        return self._ctx.unstable()
 
        try:
 
            return self._ctx.orphan()
 
        except AttributeError: # renamed in Mercurial 4.6 (03039ff3082b)
 
            return self._ctx.unstable()
 

	
 
    @LazyProperty
 
    def phase(self):
0 comments (0 inline, 0 general)