changeset 900:ba8cf1f2210c

Add force option to repo.commit, allowing commits where no files change
author mason@suse.com
date Sun, 14 Aug 2005 20:08:35 -0800
parents aa5b726e9619
children 120cba94d5aa
files mercurial/hg.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Sun Aug 14 12:30:01 2005 -0800
+++ b/mercurial/hg.py	Sun Aug 14 20:08:35 2005 -0800
@@ -856,7 +856,7 @@
             self.dirstate.setparents(n, nullid)
 
     def commit(self, files = None, text = "", user = None, date = None,
-               match = util.always):
+               match = util.always, force=False):
         commit = []
         remove = []
         if files:
@@ -873,7 +873,7 @@
             commit = c + a
             remove = d
 
-        if not commit and not remove:
+        if not commit and not remove and not force:
             self.ui.status("nothing changed\n")
             return