--- a/mercurial/commands.py Tue Jan 30 18:32:20 2007 -0200
+++ b/mercurial/commands.py Tue Jan 30 18:32:21 2007 -0200
@@ -2490,7 +2490,11 @@
Apply a compressed changegroup file generated by the bundle
command.
"""
- gen = changegroup.readbundle(urllib.urlopen(fname), fname)
+ if os.path.exists(fname):
+ f = open(fname)
+ else:
+ f = urllib.urlopen(fname)
+ gen = changegroup.readbundle(f, fname)
modheads = repo.addchangegroup(gen, 'unbundle', 'bundle:' + fname)
return postincoming(ui, repo, modheads, opts['update'])