Mercurial > hg
changeset 511:9f67222186bd
Disallow merging of unrelated projects
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Disallow merging of unrelated projects
manifest hash: 40badbca64e1ccfd83fee8cd7bf5099f57b6f8bf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCwZn6ywK+sNU5EO8RAmdeAJ9TAaGSe0nGMdL+Du3AGwm9x28IUgCgpfGG
UunOBkobMVLGdHegnOvQkmQ=
=VwVi
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Tue, 28 Jun 2005 10:42:02 -0800 |
parents | 7f3fc8fd427e |
children | 78896f572a22 |
files | mercurial/hg.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Tue Jun 28 03:08:47 2005 -0800 +++ b/mercurial/hg.py Tue Jun 28 10:42:02 2005 -0800 @@ -917,6 +917,9 @@ if f in m: raise RepoError("already have changeset " + short(f[:4])) + if fetch == [nullid]: + raise RepoError("unrelated repository") + self.ui.note("adding new changesets starting at " + " ".join([short(f) for f in fetch]) + "\n")