Show More
@@ -6,7 +6,7 b'' | |||
|
6 | 6 | # This software may be used and distributed according to the terms |
|
7 | 7 | # of the GNU General Public License, incorporated herein by reference. |
|
8 | 8 | |
|
9 |
import changegroup, revlog, os |
|
|
9 | import changegroup, revlog, os | |
|
10 | 10 | |
|
11 | 11 | def strip(ui, repo, rev, backup="all"): |
|
12 | 12 | def limitheads(chlog, stop): |
@@ -121,7 +121,10 b' def strip(ui, repo, rev, backup="all"):' | |||
|
121 | 121 | repo.manifest.strip(repo.manifest.rev(change[0]), revnum) |
|
122 | 122 | if saveheads: |
|
123 | 123 | ui.status("adding branch\n") |
|
124 | commands.unbundle(ui, repo, "file:%s" % chgrpfile, update=False) | |
|
124 | f = open(chgrpfile, "rb") | |
|
125 | gen = changegroup.readbundle(f, chgrpfile) | |
|
126 | repo.addchangegroup(gen, 'strip', 'bundle:' + chgrpfile) | |
|
127 | f.close() | |
|
125 | 128 | if backup != "strip": |
|
126 | 129 | os.unlink(chgrpfile) |
|
127 | 130 |
@@ -310,7 +310,6 b' adding changesets' | |||
|
310 | 310 | adding manifests |
|
311 | 311 | adding file changes |
|
312 | 312 | added 1 changesets with 1 changes to 1 files |
|
313 | (run 'hg update' to get a working copy) | |
|
314 | 313 | Patch queue now empty |
|
315 | 314 | applying bar |
|
316 | 315 | Now at: bar |
@@ -344,7 +343,6 b' adding changesets' | |||
|
344 | 343 | adding manifests |
|
345 | 344 | adding file changes |
|
346 | 345 | added 1 changesets with 1 changes to 1 files |
|
347 | (run 'hg update' to get a working copy) | |
|
348 | 346 | Patch queue now empty |
|
349 | 347 | applying bar |
|
350 | 348 | Now at: bar |
@@ -419,7 +417,6 b' adding changesets' | |||
|
419 | 417 | adding manifests |
|
420 | 418 | adding file changes |
|
421 | 419 | added 1 changesets with 1 changes to 1 files |
|
422 | (run 'hg update' to get a working copy) | |
|
423 | 420 | changeset: 1:20cbbe65cff7 |
|
424 | 421 | tag: tip |
|
425 | 422 | user: test |
General Comments 0
You need to be logged in to leave comments.
Login now