Commits

voyanetlabs  committed ba88a8d

added opts parsing for HGRepo.summary

  • Participants
  • Parent commits 6999a2b

Comments (0)

Files changed (1)

File lib/HGRepo.coffee

 	###
 	Get a summary of the current repository path.
 	###
-	summary: (done) ->
+	summary: (opts, done) ->
+		# Curry the arguments if no opts passed
+		if _.isFunction opts
+			done = opts
+			opts = []
+
+		opts = @_parseOptions opts
+
 		serverCmd = (server) ->
-			server.runcommand "summary"
+			server.runcommand.apply server, ["summary"].concat(opts)
 
 		@_runCommandGetOutput @path, serverCmd, done