--- a/hgext/fetch.py Wed Mar 05 09:10:45 2008 -0800
+++ b/hgext/fetch.py Wed Mar 05 09:20:57 2008 -0800
@@ -79,10 +79,12 @@
ui.status(_('pulling from %s\n') %
util.hidepassword(ui.expandpath(source)))
revs = None
- if opts['rev'] and not other.local():
- raise util.Abort(_("fetch -r doesn't work for remote repositories yet"))
- elif opts['rev']:
- revs = [other.lookup(rev) for rev in opts['rev']]
+ if opts['rev']:
+ if not other.local():
+ raise util.Abort(_("fetch -r doesn't work for remote "
+ "repositories yet"))
+ else:
+ revs = [other.lookup(rev) for rev in opts['rev']]
modheads = repo.pull(other, heads=revs)
return postincoming(other, modheads)