Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 813:80fd2958235a
Adapt commit to use file matching code.
The code is slightly complicated by the need to commit all outstanding
changes in the repository if no file names are given (other commands
operate on the current directory and its subdirectories in this case).
localrepository.changes has acquired an optional match parameter, to let
it filter out include/exclude options.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 29 Jul 2005 15:02:27 -0800 |
parents | 902b12d55751 |
children | 0902ffece4b4 |
line wrap: on
line diff
--- a/mercurial/hg.py Fri Jul 29 12:30:12 2005 -0800 +++ b/mercurial/hg.py Fri Jul 29 15:02:27 2005 -0800 @@ -773,7 +773,8 @@ if update_dirstate: self.dirstate.setparents(n, nullid) - def commit(self, files = None, text = "", user = None, date = None): + def commit(self, files = None, text = "", user = None, date = None, + match = util.always): commit = [] remove = [] if files: @@ -786,7 +787,7 @@ else: self.ui.warn("%s not tracked!\n" % f) else: - (c, a, d, u) = self.changes() + (c, a, d, u) = self.changes(match = match) commit = c + a remove = d