1. Nathan Durnan
  2. TimeStampMod

Commits

Nathan Durnan  committed 6d525be

Create empty match instead of match all when match object is missing.

  • Participants
  • Parent commits 374c74f
  • Branches BBI#19

Comments (0)

Files changed (2)

File .hgtimestamp

View file
 .hgtags,1323983941.97
 README.rst,1312921197.45
 TimeStampMod.png,1305052883.0
-TimestampMod.py,1327959159.22
+TimestampMod.py,1327960313.72
 TimeStampMod.xmind,1306451621.66

File TimestampMod.py

View file
 		# Make sure the match object is created.
 		if not match:
 			repo.ui.debug('Empty match: Must create!\n')
-			match = scmutil.matchall(repo) #match all files if nothing specified.
+			match = scmutil.matchfiles(repo, "")  #create an empty match object
 		else:
 			pass
 		# End of check for non-existent match object.