Mercurial > public > mercurial-scm > hg-stable
diff hgext/fetch.py @ 6207:03b13d853dc6
fetch: make test reproducible, tiny code cleanup
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 05 Mar 2008 09:20:57 -0800 |
parents | 0b6f12495276 |
children | f89fd07fc51d |
line wrap: on
line diff
--- 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)