# HG changeset patch # User Benoit Boissinot # Date 2009-05-19 09:39:12 # Node ID 865e08a7d6b0da2753794deab81caf14d9176258 # Parent 252232621165917755727729c7f0b9a1f1263668 localrepo: update commit*() docstrings diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -769,6 +769,12 @@ class localrepository(repo.repository): def commit(self, files=None, text="", user=None, date=None, match=None, force=False, editor=False, extra={}): + """Add a new revision to current repository. + + Revision information is gathered from the working directory, files and + match can be used to filter the committed files. + If editor is supplied, it is called to get a commit message. + """ wlock = self.wlock() try: p1, p2 = self.dirstate.parents() @@ -828,8 +834,6 @@ class localrepository(repo.repository): """Add a new revision to current repository. Revision information is passed via the context argument. - If editor is supplied, it is called to get a commit message. - If working is set, the working directory is affected. """ tr = lock = None