123456789101112131415161718192021222324252627 |
- from utilities import execute, isGit, isMercurial, isBazaar
- def add(arguments):
- '''
- Add file(s) to the pending changes.
- '''
-
- if isGit():
-
-
- if len(arguments) == 0:
- arguments.append(".")
- command = ["git", "add"]
- command.extend(arguments)
- execute(command)
- if isMercurial():
- command = ["hg", "add"]
- command.extend(arguments)
- execute(command)
- if isBazaar():
- command = ["bzr", "add"]
- command.extend(arguments)
- execute(command)
|