Mercurial > hg
changeset 16292:101c8a1befb1 stable
convert/git: abort if git submodules are detected (issue2150)
This improves the error message when convert encounters a git
submodule. Now, instead of a git-cat-file error, we'll directly report
the lack of support for git submodules.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 24 Mar 2012 22:13:17 -0500 |
parents | 9518cb55c822 |
children | bc1d949261c4 |
files | hgext/convert/git.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/git.py Sat Mar 24 12:06:49 2012 +0100 +++ b/hgext/convert/git.py Sat Mar 24 22:13:17 2012 -0500 @@ -97,6 +97,8 @@ seen.add(f) entry = entry.split() h = entry[3] + if entry[1] == '160000': + raise util.Abort('git submodules are not supported!') p = (entry[1] == "100755") s = (entry[1] == "120000") self.modecache[(f, h)] = (p and "x") or (s and "l") or ""