Show More
@@ -2652,7 +2652,7 b' def save(ui, repo, **opts):' | |||
|
2652 | 2652 | ret = q.save(repo, msg=message) |
|
2653 | 2653 | if ret: |
|
2654 | 2654 | return ret |
|
2655 | q.savedirty() | |
|
2655 | q.savedirty() # save to .hg/patches before copying | |
|
2656 | 2656 | if opts.get('copy'): |
|
2657 | 2657 | path = q.path |
|
2658 | 2658 | if opts.get('name'): |
@@ -2669,10 +2669,9 b' def save(ui, repo, **opts):' | |||
|
2669 | 2669 | ui.warn(_("copy %s to %s\n") % (path, newpath)) |
|
2670 | 2670 | util.copyfiles(path, newpath) |
|
2671 | 2671 | if opts.get('empty'): |
|
2672 | try: | |
|
2673 | os.unlink(q.join(q.statuspath)) | |
|
2674 | except: | |
|
2675 | pass | |
|
2672 | del q.applied[:] | |
|
2673 | q.applieddirty = True | |
|
2674 | q.savedirty() | |
|
2676 | 2675 | return 0 |
|
2677 | 2676 | |
|
2678 | 2677 | @command("strip", |
General Comments 0
You need to be logged in to leave comments.
Login now