##// END OF EJS Templates
commit: remove a mutable default argument...
Pierre-Yves David -
r26322:2cd19782 default
parent child Browse files
Show More
@@ -1378,13 +1378,15 b' class localrepository(object):'
1378 1378
1379 1379 @unfilteredmethod
1380 1380 def commit(self, text="", user=None, date=None, match=None, force=False,
1381 editor=False, extra={}):
1381 editor=False, extra=None):
1382 1382 """Add a new revision to current repository.
1383 1383
1384 1384 Revision information is gathered from the working directory,
1385 1385 match can be used to filter the committed files. If editor is
1386 1386 supplied, it is called to get a commit message.
1387 1387 """
1388 if extra is None:
1389 extra = {}
1388 1390
1389 1391 def fail(f, msg):
1390 1392 raise util.Abort('%s: %s' % (f, msg))
General Comments 0
You need to be logged in to leave comments. Login now