Show More
@@ -119,6 +119,8 b' def stripcmd(ui, repo, *revs, **opts):' | |||
|
119 | 119 | revs = list(revs) + opts.get('rev') |
|
120 | 120 | revs = set(scmutil.revrange(repo, revs)) |
|
121 | 121 | |
|
122 | wlock = repo.wlock() | |
|
123 | try: | |
|
122 | 124 | if opts.get('bookmark'): |
|
123 | 125 | mark = opts.get('bookmark') |
|
124 | 126 | marks = repo._bookmarks |
@@ -193,7 +195,8 b' def stripcmd(ui, repo, *revs, **opts):' | |||
|
193 | 195 | descendantrevs = repo.revs("%s::." % uctx.rev()) |
|
194 | 196 | changedfiles = [] |
|
195 | 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 | 200 | changedfiles.extend(repo[rev].files()) |
|
198 | 201 | |
|
199 | 202 | # reset files that only changed in the dirstate too |
@@ -214,6 +217,9 b' def stripcmd(ui, repo, *revs, **opts):' | |||
|
214 | 217 | marks.write() |
|
215 | 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 | 225 | return 0 |
General Comments 0
You need to be logged in to leave comments.
Login now