Show More
@@ -119,6 +119,8 b' def stripcmd(ui, repo, *revs, **opts):' | |||||
119 | revs = list(revs) + opts.get('rev') |
|
119 | revs = list(revs) + opts.get('rev') | |
120 | revs = set(scmutil.revrange(repo, revs)) |
|
120 | revs = set(scmutil.revrange(repo, revs)) | |
121 |
|
121 | |||
|
122 | wlock = repo.wlock() | |||
|
123 | try: | |||
122 | if opts.get('bookmark'): |
|
124 | if opts.get('bookmark'): | |
123 | mark = opts.get('bookmark') |
|
125 | mark = opts.get('bookmark') | |
124 | marks = repo._bookmarks |
|
126 | marks = repo._bookmarks | |
@@ -193,7 +195,8 b' def stripcmd(ui, repo, *revs, **opts):' | |||||
193 | descendantrevs = repo.revs("%s::." % uctx.rev()) |
|
195 | descendantrevs = repo.revs("%s::." % uctx.rev()) | |
194 | changedfiles = [] |
|
196 | changedfiles = [] | |
195 | for rev in descendantrevs: |
|
197 | for rev in descendantrevs: | |
196 |
# blindly reset the files, regardless of what actually |
|
198 | # blindly reset the files, regardless of what actually | |
|
199 | # changed | |||
197 | changedfiles.extend(repo[rev].files()) |
|
200 | changedfiles.extend(repo[rev].files()) | |
198 |
|
201 | |||
199 | # reset files that only changed in the dirstate too |
|
202 | # reset files that only changed in the dirstate too | |
@@ -214,6 +217,9 b' def stripcmd(ui, repo, *revs, **opts):' | |||||
214 | marks.write() |
|
217 | marks.write() | |
215 | ui.write(_("bookmark '%s' deleted\n") % mark) |
|
218 | ui.write(_("bookmark '%s' deleted\n") % mark) | |
216 |
|
219 | |||
217 |
strip(ui, repo, revs, backup=backup, update=update, |
|
220 | strip(ui, repo, revs, backup=backup, update=update, | |
|
221 | force=opts.get('force')) | |||
|
222 | finally: | |||
|
223 | wlock.release() | |||
218 |
|
224 | |||
219 | return 0 |
|
225 | return 0 |
General Comments 0
You need to be logged in to leave comments.
Login now