##// END OF EJS Templates
Add force option to repo.commit, allowing commits where no files change
mason@suse.com -
r900:ba8cf1f2 default
parent child Browse files
Show More
@@ -856,7 +856,7 b' class localrepository:'
856 856 self.dirstate.setparents(n, nullid)
857 857
858 858 def commit(self, files = None, text = "", user = None, date = None,
859 match = util.always):
859 match = util.always, force=False):
860 860 commit = []
861 861 remove = []
862 862 if files:
@@ -873,7 +873,7 b' class localrepository:'
873 873 commit = c + a
874 874 remove = d
875 875
876 if not commit and not remove:
876 if not commit and not remove and not force:
877 877 self.ui.status("nothing changed\n")
878 878 return
879 879
General Comments 0
You need to be logged in to leave comments. Login now