hgext/strip.py
changeset 32897 799db2af824c
parent 32337 46ba2cdda476
child 32919 daceeed34ad2
equal deleted inserted replaced
32896:e14484e7f562 32897:799db2af824c
    12     error,
    12     error,
    13     hg,
    13     hg,
    14     lock as lockmod,
    14     lock as lockmod,
    15     merge,
    15     merge,
    16     node as nodemod,
    16     node as nodemod,
       
    17     pycompat,
    17     registrar,
    18     registrar,
    18     repair,
    19     repair,
    19     scmutil,
    20     scmutil,
    20     util,
    21     util,
    21 )
    22 )
   131     changesets in the public phase. But if the stripped changesets have
   132     changesets in the public phase. But if the stripped changesets have
   132     been pushed to a remote repository you will likely pull them again.
   133     been pushed to a remote repository you will likely pull them again.
   133 
   134 
   134     Return 0 on success.
   135     Return 0 on success.
   135     """
   136     """
       
   137     opts = pycompat.byteskwargs(opts)
   136     backup = True
   138     backup = True
   137     if opts.get('no_backup') or opts.get('nobackup'):
   139     if opts.get('no_backup') or opts.get('nobackup'):
   138         backup = False
   140         backup = False
   139 
   141 
   140     cl = repo.changelog
   142     cl = repo.changelog