Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Unified Diff: gclient_scm.py

Issue 6883263: Remove unmaintained "gclient export" command, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gclient.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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."""
« no previous file with comments | « gclient.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698