mercurial/repair.py
changeset 32940 eb84b4ad41e5
parent 32901 0a41902879d3
child 32941 e413609659cf
equal deleted inserted replaced
32939:5694311db6ed 32940:eb84b4ad41e5
    74         collectone(repo.file(fname))
    74         collectone(repo.file(fname))
    75 
    75 
    76     return s
    76     return s
    77 
    77 
    78 def strip(ui, repo, nodelist, backup=True, topic='backup'):
    78 def strip(ui, repo, nodelist, backup=True, topic='backup'):
    79     # This function operates within a transaction of its own, but does
    79     # This function requires the caller to lock the repo, but it operates
    80     # not take any lock on the repo.
    80     # within a transaction of its own, and thus requires there to be no current
       
    81     # transaction when it is called.
    81     # Simple way to maintain backwards compatibility for this
    82     # Simple way to maintain backwards compatibility for this
    82     # argument.
    83     # argument.
    83     if backup in ['none', 'strip']:
    84     if backup in ['none', 'strip']:
    84         backup = False
    85         backup = False
    85 
    86