hgext/remotefilelog/__init__.py
changeset 43117 8ff1ecfadcd1
parent 43105 649d3ac37a12
child 43181 5ff32fdf0b0b
equal deleted inserted replaced
43116:defabf63e969 43117:8ff1ecfadcd1
   271     entry[1].append(
   271     entry[1].append(
   272         (
   272         (
   273             b'',
   273             b'',
   274             b'shallow',
   274             b'shallow',
   275             None,
   275             None,
   276             _(b"create a shallow clone which uses remote file " b"history"),
   276             _(b"create a shallow clone which uses remote file history"),
   277         )
   277         )
   278     )
   278     )
   279 
   279 
   280     extensions.wrapcommand(
   280     extensions.wrapcommand(
   281         commands.table, b'debugindex', debugcommands.debugindex
   281         commands.table, b'debugindex', debugcommands.debugindex
   794 
   794 
   795     pctx = repo[b'.']
   795     pctx = repo[b'.']
   796     for filename in match.files():
   796     for filename in match.files():
   797         if filename not in pctx:
   797         if filename not in pctx:
   798             raise error.Abort(
   798             raise error.Abort(
   799                 _(b'cannot follow file not in parent ' b'revision: "%s"')
   799                 _(b'cannot follow file not in parent revision: "%s"') % filename
   800                 % filename
       
   801             )
   800             )
   802         fctx = pctx[filename]
   801         fctx = pctx[filename]
   803 
   802 
   804         linkrev = fctx.linkrev()
   803         linkrev = fctx.linkrev()
   805         if linkrev >= minrev and linkrev <= maxrev:
   804         if linkrev >= minrev and linkrev <= maxrev: