changeset 511 | 9f67222186bd |
parent 504 | a350c1cd3fc5 |
child 514 | 874e577e332e |
--- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -917,6 +917,9 @@ class localrepository: 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")