]> thyrsus.com Git - src.git/commitdiff
Fix an out-of-date method name. Regression tests pass.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 20 Nov 2014 05:13:27 +0000 (00:13 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 20 Nov 2014 05:13:27 +0000 (00:13 -0500)
src

diff --git a/src b/src
index ebe4a12b5adf081a403bd486dd531914d9c3c6b4..ede1ea939d6e1e50c12693f1551d20455636ca4c 100755 (executable)
--- a/src
+++ b/src
@@ -289,7 +289,7 @@ class History:
         try:
             return self.by_native_d[self.lockrevs[0]]
         except IndexError:
-            croak("no current revision? src checkout to recover")
+            croak("in %s, no current revision - src checkout to recover" % self,name)
     def current_branch(self, backwards=False):
         "Return a list of items that are descendants or ancestors of current."
         if debug >= DEBUG_SEQUENCE:
@@ -1105,7 +1105,7 @@ def add_method(*args):
     for arg in ctx.args:
        if not os.path.exists(arg):
            croak("I see no '%s' here." % arg)
-       elif os.path.exists(backend.master(arg)):
+       elif os.path.exists(backend.history(arg)):
            croak("%s is already registered." % arg)
        else:
            backend.add(arg)