# HG changeset patch # User Eric Eisner # Date 1298474264 18000 # Node ID fa88fabc1d66611a23417f7477787c71799614d0 # Parent da0ddd62b9d84fa40fe53e19708e92855a6cc800 subrepo: disallow all unknown git ref types diff -r da0ddd62b9d8 -r fa88fabc1d66 mercurial/subrepo.py --- a/mercurial/subrepo.py Wed Feb 23 11:42:41 2011 +0100 +++ b/mercurial/subrepo.py Wed Feb 23 10:17:44 2011 -0500 @@ -730,7 +730,8 @@ '%(objectname) %(refname)']) for line in out.split('\n'): revision, ref = line.split(' ') - if ref.startswith('refs/tags/'): + if (not ref.startswith('refs/heads/') and + not ref.startswith('refs/remotes/')): continue if ref.startswith('refs/remotes/') and ref.endswith('/HEAD'): continue # ignore remote/HEAD redirects