warn if --repository provided for norepo commands
authorMatt Mackall <mpm@selenic.com>
Wed, 28 Jan 2009 14:27:44 -0600
changeset 7733 30e95eafc1d0
parent 7732 3793802ea41b
child 7734 9f73bddb9d0b
warn if --repository provided for norepo commands
mercurial/dispatch.py
--- a/mercurial/dispatch.py	Sun Jan 25 21:20:13 2009 +0100
+++ b/mercurial/dispatch.py	Wed Jan 28 14:27:44 2009 -0600
@@ -354,6 +354,8 @@
                                       " here (.hg not found)"))
                 raise
         args.insert(0, repo)
+    elif rpath:
+        ui.warn("warning: --repository ignored\n")
 
     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)