##// END OF EJS Templates
mq: make qsave implementation more explicit...
Mads Kiilerich -
r15880:02b13555 default
parent child Browse files
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",
@@ -245,7 +245,6 b''
245 245 hgext/mq.py:0:
246 246 > except:
247 247 warning: naked except clause
248 warning: naked except clause
249 248 hgext/mq.py:0:
250 249 > ui.write("mq: %s\n" % ', '.join(m))
251 250 warning: unwrapped ui message
General Comments 0
You need to be logged in to leave comments. Login now