Mercurial > hg
changeset 4008:6e0cb0790e23
mq: fix strip failing to unlink a bundle
os.unlink doesn't know how to deal with urls
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 26 Dec 2006 21:57:20 +0100 |
parents | 9dcf9d45cab8 |
children | 86098ec4b77a |
files | hgext/mq.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Tue Dec 26 14:17:48 2006 +0100 +++ b/hgext/mq.py Tue Dec 26 21:57:20 2006 +0100 @@ -702,7 +702,6 @@ if saveheads: backupch = repo.changegroupsubset(savebases.keys(), saveheads, 'strip') chgrpfile = bundle(backupch) - chgrpfile = 'file:%s' % chgrpfile stripall(rev, revnum) @@ -711,7 +710,8 @@ repo.manifest.strip(repo.manifest.rev(change[0]), revnum) if saveheads: self.ui.status("adding branch\n") - commands.unbundle(self.ui, repo, chgrpfile, update=False) + commands.unbundle(self.ui, repo, "file:%s" % chgrpfile, + update=False) if backup != "strip": os.unlink(chgrpfile)