Patchwork D3043: narrow: pass node into revlog.revision()

login
register
mail settings
Submitter phabricator
Date April 4, 2018, 7:06 p.m.
Message ID <0bbe751a9b0c2185905d9c132481aef9@localhost.localdomain>
Download mbox | patch
Permalink /patch/30282/
State Not Applicable
Headers show

Comments

phabricator - April 4, 2018, 7:06 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8cf97e0e1730: narrow: pass node into revlog.revision() (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3043?vs=7569&id=7641

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

AFFECTED FILES
  hgext/narrow/narrowchangegroup.py

CHANGE DETAILS




To: indygreg, durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/narrow/narrowchangegroup.py b/hgext/narrow/narrowchangegroup.py
--- a/hgext/narrow/narrowchangegroup.py
+++ b/hgext/narrow/narrowchangegroup.py
@@ -350,8 +350,9 @@ 
             p2 = node.nullrev
         else:
             p1, p2 = sorted(local(p) for p in linkparents)
+        n = revlog.node(rev)
         yield ellipsisdata(
-            self, rev, revlog, p1, p2, revlog.revision(rev), linknode)
+            self, rev, revlog, p1, p2, revlog.revision(n), linknode)
     extensions.wrapfunction(changegroup.cg1packer, 'revchunk', revchunk)
 
     def deltaparent(orig, self, revlog, rev, p1, p2, prev):