Use _invoke_client (vs. old _u_invoke_client) for Monotone get_workspace_root.
authorW. Trevor King <wking@drexel.edu>
Sat, 26 Jun 2010 20:26:50 +0000 (16:26 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 26 Jun 2010 20:26:50 +0000 (16:26 -0400)
This fixes Chris'

======================================================================
ERROR: Adding entries with the same ID should not increase the number
of children.
----------------------------------------------------------------------
Traceback (most recent call last):
  ...
CommandError: Command failed (1):
      mtn: misuse: workspace required but not found

while executing
      ['mtn', 'automate', 'get_workspace_root']

libbe/storage/vcs/monotone.py

index 2bb5fd4ec8196ac76d0f5c7da7bbe95cc6ba4a48..350b4f19460dc4e4b2698267b7337e409805ac59 100644 (file)
@@ -136,7 +136,7 @@ class Monotone (base.VCS):
         else:
             dirname = path
         if self.version_cmp(8, 0) >= 0:
-            status,output,error = self._u_invoke_client(
+            status,output,error = self._invoke_client(
                 'automate', 'get_workspace_root', cwd=dirname)
         else:
             mtn_dir = self._u_search_parent_directories(path, '_MTN')