Mercurial > public > mercurial-scm > hg-stable
diff hgext/fetch.py @ 6226:bd61e44eb2cc
fetch: don't proceed if working directory is missing files (issue988)
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 11 Mar 2008 11:38:12 -0700 |
parents | 595a69a01129 |
children | 0d4e068e9e52 |
line wrap: on
line diff
--- a/hgext/fetch.py Tue Mar 11 11:30:42 2008 -0700 +++ b/hgext/fetch.py Tue Mar 11 11:38:12 2008 -0700 @@ -103,9 +103,11 @@ try: wlock = repo.wlock() lock = repo.lock() - mod, add, rem = repo.status()[:3] + mod, add, rem, del_ = repo.status()[:4] if mod or add or rem: raise util.Abort(_('outstanding uncommitted changes')) + if del_: + raise util.Abort(_('working directory is missing some files')) if len(repo.heads()) > 1: raise util.Abort(_('multiple heads in this repository ' '(use "hg heads" and "hg merge" to merge)'))