Esempio n. 1
0
 def node(self, rev):
     # This is a hack.
     if isint(rev):
         raise error.ProgrammingError(
             "remotefilelog does not convert integer rev to node"
         )
     return rev
Esempio n. 2
0
 def flags(self, node):
     if isint(node):
         raise error.ProgrammingError(
             "remotefilelog does not accept integer rev for flags"
         )
     if node == nullid:
         return revlog.REVIDX_DEFAULT_FLAGS
     store = self.repo.fileslog.contentstore
     return store.getmeta(self.filename, node).get(constants.METAKEYFLAG, 0)
Esempio n. 3
0
 def addrawrevision(
     orig,
     self,
     rawtext,
     transaction,
     link,
     p1,
     p2,
     node,
     flags,
     cachedelta=None,
     _metatuple=None,
 ):
     if isint(link):
         pendingfilecommits.append((
             self,
             rawtext,
             transaction,
             link,
             p1,
             p2,
             node,
             flags,
             cachedelta,
             _metatuple,
         ))
         return node
     else:
         return orig(
             self,
             rawtext,
             transaction,
             link,
             p1,
             p2,
             node,
             flags,
             cachedelta,
             _metatuple=_metatuple,
         )