equal
deleted
inserted
replaced
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 |