From: Eric S. Raymond Date: Thu, 20 Nov 2014 05:13:27 +0000 (-0500) Subject: Fix an out-of-date method name. Regression tests pass. X-Git-Tag: 0.11~3 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=fe526ba87d834570b1c622917c51d4c48ceb9309;p=src.git Fix an out-of-date method name. Regression tests pass. --- diff --git a/src b/src index ebe4a12..ede1ea9 100755 --- 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)