changeset 47:b73b3e3c9560

Don't overwrite non local repo.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 08 Sep 2011 14:13:14 +0200
parents 3b0364fc822f
children 5fd7b64aa8c5
files obsolete.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/obsolete.py	Thu Sep 08 16:46:58 2011 +0200
+++ b/obsolete.py	Thu Sep 08 14:13:14 2011 +0200
@@ -114,6 +114,9 @@
 
 def reposetup(ui, repo):
 
+    if not repo.local():
+        return
+
     opull = repo.pull
     opush = repo.push