##// 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 self.dirstate.setparents(n, nullid)
856 self.dirstate.setparents(n, nullid)
857
857
858 def commit(self, files = None, text = "", user = None, date = None,
858 def commit(self, files = None, text = "", user = None, date = None,
859 match = util.always):
859 match = util.always, force=False):
860 commit = []
860 commit = []
861 remove = []
861 remove = []
862 if files:
862 if files:
@@ -873,7 +873,7 b' class localrepository:'
873 commit = c + a
873 commit = c + a
874 remove = d
874 remove = d
875
875
876 if not commit and not remove:
876 if not commit and not remove and not force:
877 self.ui.status("nothing changed\n")
877 self.ui.status("nothing changed\n")
878 return
878 return
879
879
General Comments 0
You need to be logged in to leave comments. Login now