Index: gclient_scm.py |
=================================================================== |
--- gclient_scm.py (revision 83504) |
+++ gclient_scm.py (working copy) |
@@ -110,7 +110,7 @@ |
if file_list is None: |
file_list = [] |
- commands = ['cleanup', 'export', 'update', 'updatesingle', 'revert', |
+ commands = ['cleanup', 'update', 'updatesingle', 'revert', |
'revinfo', 'status', 'diff', 'pack', 'runhooks'] |
if not command in commands: |
@@ -144,19 +144,6 @@ |
merge_base = self._Capture(['merge-base', 'HEAD', 'origin']) |
self._Run(['diff', merge_base], options) |
- def export(self, options, args, file_list): |
- """Export a clean directory tree into the given path. |
- |
- Exports into the specified directory, creating the path if it does |
- already exist. |
- """ |
- assert len(args) == 1 |
- export_path = os.path.abspath(os.path.join(args[0], self.relpath)) |
- if not os.path.exists(export_path): |
- os.makedirs(export_path) |
- self._Run(['checkout-index', '-a', '--prefix=%s/' % export_path], |
- options) |
- |
def pack(self, options, args, file_list): |
"""Generates a patch file which can be applied to the root of the |
repository. |
@@ -701,17 +688,6 @@ |
self.checkout_path) |
self._Run(['diff'] + args, options) |
- def export(self, options, args, file_list): |
- """Export a clean directory tree into the given path.""" |
- assert len(args) == 1 |
- export_path = os.path.abspath(os.path.join(args[0], self.relpath)) |
- try: |
- os.makedirs(export_path) |
- except OSError: |
- pass |
- assert os.path.exists(export_path) |
- self._Run(['export', '--force', '.', export_path], options) |
- |
def pack(self, options, args, file_list): |
"""Generates a patch file which can be applied to the root of the |
repository.""" |