bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def diff(self, options, args, file_list): merge_base = self._Run(['merge-base', 'HEAD', 'origin']) self._Run(['diff', merge_base], redirect_stdout=False) | def diff(self, options, args, file_list): merge_base = self._Run(['merge-base', 'HEAD', 'origin']) self._Run(['diff', merge_base], redirect_stdout=False) | 457,800 |
def export(self, options, args, file_list): """Export a clean directory tree into the given path. | def export(self, options, args, file_list): """Export a clean directory tree into the given path. | 457,801 |
def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository. | def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository. | 457,802 |
def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | 457,803 |
def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | 457,804 |
def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | 457,805 |
def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | 457,806 |
def revert(self, options, args, file_list): """Reverts local modifications. | def revert(self, options, args, file_list): """Reverts local modifications. | 457,807 |
def revinfo(self, options, args, file_list): """Display revision""" return self._Run(['rev-parse', 'HEAD']) | def revinfo(self, options, args, file_list): """Display revision""" return self._Run(['rev-parse', 'HEAD']) | 457,808 |
def status(self, options, args, file_list): """Display status information.""" if not os.path.isdir(self.checkout_path): options.stdout.write( ('\n________ couldn\'t run status in %s:\nThe directory ' 'does not exist.\n') % self.checkout_path) else: merge_base = self._Run(['merge-base', 'HEAD', 'origin']) self._Run(['di... | def status(self, options, args, file_list): """Display status information.""" if not os.path.isdir(self.checkout_path): options.stdout.write( ('\n________ couldn\'t run status in %s:\nThe directory ' 'does not exist.\n') % self.checkout_path) else: merge_base = self._Capture(['merge-base', 'HEAD', 'origin']) self._Run(... | 457,809 |
def _Clone(self, revision, url, options): """Clone a git repository from the given URL. | def _Clone(self, revision, url, options): """Clone a git repository from the given URL. | 457,810 |
def _Clone(self, revision, url, options): """Clone a git repository from the given URL. | def _Clone(self, revision, url, options): """Clone a git repository from the given URL. | 457,811 |
def _AttemptRebase(self, upstream, files, options, newbase=None, branch=None, printed_path=False): """Attempt to rebase onto either upstream or, if specified, newbase.""" files.extend(self._Run(['diff', upstream, '--name-only']).split()) revision = upstream if newbase: revision = newbase if not printed_path: options.st... | def _AttemptRebase(self, upstream, files, options, newbase=None, branch=None, printed_path=False): """Attempt to rebase onto either upstream or, if specified, newbase.""" files.extend(self._Capture(['diff', upstream, '--name-only']).split()) revision = upstream if newbase: revision = newbase if not printed_path: option... | 457,812 |
def _AttemptRebase(self, upstream, files, options, newbase=None, branch=None, printed_path=False): """Attempt to rebase onto either upstream or, if specified, newbase.""" files.extend(self._Run(['diff', upstream, '--name-only']).split()) revision = upstream if newbase: revision = newbase if not printed_path: options.st... | def _AttemptRebase(self, upstream, files, options, newbase=None, branch=None, printed_path=False): """Attempt to rebase onto either upstream or, if specified, newbase.""" files.extend(self._Run(['diff', upstream, '--name-only']).split()) revision = upstream if newbase: revision = newbase if not printed_path: options.st... | 457,813 |
def _CheckDetachedHead(self, rev_str, options): # HEAD is detached. Make sure it is safe to move away from (i.e., it is # reference by a commit). If not, error out -- most likely a rebase is # in progress, try to detect so we can give a better error. try: _, _ = scm.GIT.Capture( ['name-rev', '--no-undefined', 'HEAD'], ... | def _CheckDetachedHead(self, rev_str, options): # HEAD is detached. Make sure it is safe to move away from (i.e., it is # reference by a commit). If not, error out -- most likely a rebase is # in progress, try to detect so we can give a better error. try: _, _ = scm.GIT.Capture( ['name-rev', '--no-undefined', 'HEAD'], ... | 457,814 |
def _GetCurrentBranch(self): # Returns name of current branch or None for detached HEAD branch = self._Run(['rev-parse', '--abbrev-ref=strict', 'HEAD']) if branch == 'HEAD': return None return branch | def _GetCurrentBranch(self): # Returns name of current branch or None for detached HEAD branch = self._Capture(['rev-parse', '--abbrev-ref=strict', 'HEAD']) if branch == 'HEAD': return None return branch | 457,815 |
def _Run(self, args, cwd=None, redirect_stdout=True): # TODO(maruel): Merge with Capture or better gclient_utils.CheckCall(). if cwd is None: cwd = self.checkout_path stdout = None if redirect_stdout: stdout = subprocess.PIPE if cwd == None: cwd = self.checkout_path cmd = ['git'] + args logging.debug(cmd) try: sp = gcl... | def _Run(self, args, cwd=None, redirect_stdout=True): # TODO(maruel): Merge with Capture or better gclient_utils.CheckCall(). if cwd is None: cwd = self.checkout_path stdout = None if redirect_stdout: stdout = subprocess.PIPE if cwd == None: cwd = self.checkout_path cmd = ['git'] + args logging.debug(cmd) try: sp = gcl... | 457,816 |
def _Run(self, args, cwd=None, redirect_stdout=True): # TODO(maruel): Merge with Capture or better gclient_utils.CheckCall(). if cwd is None: cwd = self.checkout_path stdout = None if redirect_stdout: stdout = subprocess.PIPE if cwd == None: cwd = self.checkout_path cmd = ['git'] + args logging.debug(cmd) try: sp = gcl... | def _Run(self, args, cwd=None, redirect_stdout=True): # TODO(maruel): Merge with Capture or better gclient_utils.CheckCall(). if cwd is None: cwd = self.checkout_path stdout = None if redirect_stdout: stdout = subprocess.PIPE if cwd == None: cwd = self.checkout_path cmd = ['git'] + args logging.debug(cmd) try: gclient_... | 457,817 |
def _Run(self, args, cwd=None, redirect_stdout=True): # TODO(maruel): Merge with Capture or better gclient_utils.CheckCall(). if cwd is None: cwd = self.checkout_path stdout = None if redirect_stdout: stdout = subprocess.PIPE if cwd == None: cwd = self.checkout_path cmd = ['git'] + args logging.debug(cmd) try: sp = gcl... | def _Run(self, args, cwd=None, redirect_stdout=True): # TODO(maruel): Merge with Capture or better gclient_utils.CheckCall(). if cwd is None: cwd = self.checkout_path stdout = None if redirect_stdout: stdout = subprocess.PIPE if cwd == None: cwd = self.checkout_path cmd = ['git'] + args logging.debug(cmd) try: sp = gcl... | 457,818 |
def testMembersChanged(self): self.mox.ReplayAll() members = [ 'CODEREVIEW_SETTINGS', 'CODEREVIEW_SETTINGS_FILE', 'CMDchange', 'CMDchanges', 'CMDcommit', 'CMDdelete', 'CMDdeleteempties', 'CMDdescription', 'CMDdiff', 'CMDhelp', 'CMDlint', 'CMDnothave', 'CMDopened', 'CMDpassthru', 'CMDpresubmit', 'CMDrename', 'CMDsetting... | def testMembersChanged(self): self.mox.ReplayAll() members = [ 'CODEREVIEW_SETTINGS', 'CODEREVIEW_SETTINGS_FILE', 'CMDchange', 'CMDchanges', 'CMDcommit', 'CMDdelete', 'CMDdeleteempties', 'CMDdescription', 'CMDdiff', 'CMDhelp', 'CMDlint', 'CMDnothave', 'CMDopened', 'CMDpassthru', 'CMDpresubmit', 'CMDrename', 'CMDsetting... | 457,819 |
def CMDdiff(args): """Diffs all files in the changelist or all files that aren't in a CL.""" files = None if args: change_info = ChangeInfo.Load(args.pop(0), GetRepositoryRoot(), True, True) files = change_info.GetFileNames() else: files = GetFilesNotInCL() root = GetRepositoryRoot() cmd = ['svn', 'diff'] cmd.extend([... | def CMDdiff(args): """Diffs all files in the changelist or all files that aren't in a CL.""" files = None if args: change_info = ChangeInfo.Load(args.pop(0), GetRepositoryRoot(), True, True) files = change_info.GetFileNames() else: files = [f[1] for f in GetFilesNotInCL()] root = GetRepositoryRoot() cmd = ['svn', 'dif... | 457,820 |
def TryChange(argv, file_list, swallow_exception, prog=None): """ Args: argv: Arguments and options. file_list: Default value to pass to --file. swallow_exception: Whether we raise or swallow exceptions. """ # Parse argv parser = optparse.OptionParser(usage=USAGE, version=__version__, prog=prog) parser.add_option("-v",... | def TryChange(argv, file_list, swallow_exception, prog=None): """ Args: argv: Arguments and options. file_list: Default value to pass to --file. swallow_exception: Whether we raise or swallow exceptions. """ # Parse argv parser = optparse.OptionParser(usage=USAGE, version=__version__, prog=prog) parser.add_option("-v",... | 457,821 |
def RunOnDeps(self, command, args): """Runs a command on each dependency in a client and its dependencies. | def RunOnDeps(self, command, args): """Runs a command on each dependency in a client and its dependencies. | 457,822 |
def CMDsync(parser, args): """Checkout/update all modules.""" parser.add_option('-f', '--force', action='store_true', help='force update even for unchanged modules') parser.add_option('-n', '--nohooks', action='store_true', help='don\'t run hooks after the update is complete') parser.add_option('-r', '--revision', acti... | def CMDsync(parser, args): """Checkout/update all modules.""" parser.add_option('-f', '--force', action='store_true', help='force update even for unchanged modules') parser.add_option('-n', '--nohooks', action='store_true', help='don\'t run hooks after the update is complete') parser.add_option('-r', '--revision', acti... | 457,823 |
def CMDrevert(parser, args): """Revert all modifications in every dependencies.""" parser.add_option('--deps', dest='deps_os', metavar='OS_LIST', help='override deps for the specified (comma-separated) ' 'platform(s); \'all\' will process all deps_os ' 'references') parser.add_option('-n', '--nohooks', action='store_tr... | def CMDrevert(parser, args): """Revert all modifications in every dependencies. That's the nuclear option to get back to a 'clean' state. It removes anything that shows up in svn status.""" parser.add_option('--deps', dest='deps_os', metavar='OS_LIST', help='override deps for the specified (comma-separated) ' 'platfor... | 457,824 |
def GetURLAndRev(name, original_url): url, revision = gclient_utils.SplitUrlRevision(original_url) if not revision: if revision_overrides.has_key(name): return (url, revision_overrides[name]) else: scm = gclient_scm.CreateSCM(solution["url"], self._root_dir, name) return (url, scm.revinfo(self._options, [], None)) else... | def GetURLAndRev(name, original_url): url, revision = gclient_utils.SplitUrlRevision(original_url) if not revision: if revision_overrides.has_key(name): return (url, revision_overrides[name]) else: scm = gclient_scm.CreateSCM(solution["url"], self._root_dir, name) return (url, scm.revinfo(self._options, [], None)) else... | 457,825 |
def GetURLAndRev(name, original_url): url, revision = gclient_utils.SplitUrlRevision(original_url) if not revision: if revision_overrides.has_key(name): return (url, revision_overrides[name]) else: scm = gclient_scm.CreateSCM(solution["url"], self._root_dir, name) return (url, scm.revinfo(self._options, [], None)) else... | def GetURLAndRev(name, original_url): url, revision = gclient_utils.SplitUrlRevision(original_url) if not revision: if revision_overrides.has_key(name): return (url, revision_overrides[name]) else: scm = gclient_scm.CreateSCM(solution["url"], self._root_dir, name) return (url, scm.revinfo(self._options, [], None)) else... | 457,826 |
def Main(argv): """Doesn't parse the arguments here, just find the right subcommand to execute.""" try: # Do it late so all commands are listed. CMDhelp.usage = ('\n\nCommands are:\n' + '\n'.join([ ' %-10s %s' % (fn[3:], Command(fn[3:]).__doc__.split('\n')[0].strip()) for fn in dir(sys.modules[__name__]) if fn.startsw... | def Main(argv): """Doesn't parse the arguments here, just find the right subcommand to execute.""" try: # Do it late so all commands are listed. CMDhelp.usage = ('\n\nCommands are:\n' + '\n'.join([ ' %-10s %s' % (fn[3:], Command(fn[3:]).__doc__.split('\n')[0].strip()) for fn in dir(sys.modules[__name__]) if fn.startsw... | 457,827 |
def ReadRootFile(self, filename): if not self.options.root: filepath = os.path.join(self.checkout_root, filename) if os.path.isfile(filepath): logging.info('Found %s at %s' % (filename, self.checkout_root)) return gclient_util.FileRead(filepath) return None cur = os.path.abspath(self.checkout_root) if self.gclient_root... | def ReadRootFile(self, filename): if not self.options.root: filepath = os.path.join(self.checkout_root, filename) if os.path.isfile(filepath): logging.info('Found %s at %s' % (filename, self.checkout_root)) return gclient_utils.FileRead(filepath) return None cur = os.path.abspath(self.checkout_root) if self.gclient_roo... | 457,828 |
def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | 457,829 |
def IsKnownFailure(): for x in failure: if (x.startswith('svn: OPTIONS of') or x.startswith('svn: PROPFIND of') or x.startswith('svn: REPORT of') or x.startswith('svn: Unknown hostname')): return True return False | def IsKnownFailure(): for x in failure: if (x.startswith('svn: OPTIONS of') or x.startswith('svn: PROPFIND of') or x.startswith('svn: REPORT of') or x.startswith('svn: Unknown hostname') or x.startswith('svn: Server sent unexpected return value')): return True return False | 457,830 |
def LateOverride(self, url): overriden_url = self.get_custom_deps(self.name, url) if overriden_url != url: self.parsed_url = overriden_url logging.debug('%s, %s was overriden to %s' % (self.name, url, self.parsed_url)) elif isinstance(url, self.FromImpl): ref = [dep for dep in self.tree(True) if url.module_name == dep.... | def LateOverride(self, url): overriden_url = self.get_custom_deps(self.name, url) if overriden_url != url: self.parsed_url = overriden_url logging.debug('%s, %s was overriden to %s' % (self.name, url, self.parsed_url)) elif isinstance(url, self.FromImpl): ref = [dep for dep in self.tree(True) if url.module_name == dep.... | 457,831 |
def ParseDepsFile(self, direct_reference): """No DEPS to parse for a .gclient file.""" self.direct_reference = direct_reference self.deps_parsed = True | def ParseDepsFile(self, direct_reference): """No DEPS to parse for a .gclient file.""" self.direct_reference = True self.deps_parsed = True | 457,832 |
def __init__(self, commit=None, upstream_branch=None): self.commit = commit self.verbose = None self.default_presubmit = None self.may_prompt = None | def __init__(self, commit=None, upstream_branch=None): self.commit = commit self.verbose = None self.default_presubmit = None self.may_prompt = None | 457,833 |
def __init__(self, commit=None, upstream_branch=None): self.commit = commit self.verbose = None self.default_presubmit = None self.may_prompt = None | def __init__(self, commit=None, upstream_branch=None): self.commit = commit self.verbose = None self.default_presubmit = None self.may_prompt = None | 457,834 |
def runGcl(subcommand): gcl_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "gcl") if not os.path.exists(gcl_path): print "WARNING: gcl not found beside drover.py. Using system gcl instead..." gcl_path = 'gcl' command = "%s %s" % (gcl_path, subcommand) return os.system(command) | def runGcl(subcommand): gcl_path = os.path.join(depot_tools_dir_, "gcl") if not os.path.exists(gcl_path): print "WARNING: gcl not found beside drover.py. Using system gcl instead..." gcl_path = 'gcl' command = "%s %s" % (gcl_path, subcommand) return os.system(command) | 457,835 |
def ReadRootFile(self, filename): try: # Try to search on the subversion repository for the file. import gcl data = gcl.GetCachedFile(filename, use_root=True) logging.debug('%s:\n%s' % (filename, data)) return data except ImportError: try: data = gclient_utils.FileRead(os.path.join(self.checkout_root, filename)) loggin... | def ReadRootFile(self, filename): try: # Try to search on the subversion repository for the file. import gcl data = gcl.GetCachedFile(filename) logging.debug('%s:\n%s' % (filename, data)) return data except ImportError: try: data = gclient_utils.FileRead(os.path.join(self.checkout_root, filename)) logging.debug('%s:\n%... | 457,836 |
def RunOnDeps(self, command, args): """Runs a command on each dependency in a client and its dependencies. | def RunOnDeps(self, command, args): """Runs a command on each dependency in a client and its dependencies. | 457,837 |
def _GetAuthCookie(self, auth_token): """Fetches authentication cookies for an authentication token. | def _GetAuthCookie(self, host, auth_token): """Fetches authentication cookies for an authentication token. | 457,838 |
def _GetAuthCookie(self, auth_token): """Fetches authentication cookies for an authentication token. | def _GetAuthCookie(self, auth_token): """Fetches authentication cookies for an authentication token. | 457,839 |
def _Authenticate(self): """Authenticates the user. | def _Authenticate(self, host): """Authenticates the user. | 457,840 |
def _Authenticate(self): """Authenticates the user. | def _Authenticate(self): """Authenticates the user. | 457,841 |
def Send(self, request_path, payload=None, content_type="application/octet-stream", timeout=None, extra_headers=None, **kwargs): """Sends an RPC and returns the response. | def Send(self, request_path, payload=None, content_type="application/octet-stream", timeout=None, extra_headers=None, **kwargs): """Sends an RPC and returns the response. | 457,842 |
def Send(self, request_path, payload=None, content_type="application/octet-stream", timeout=None, extra_headers=None, **kwargs): """Sends an RPC and returns the response. | def Send(self, request_path, payload=None, content_type="application/octet-stream", timeout=None, extra_headers=None, **kwargs): """Sends an RPC and returns the response. | 457,843 |
def Send(self, request_path, payload=None, content_type="application/octet-stream", timeout=None, extra_headers=None, **kwargs): """Sends an RPC and returns the response. | def Send(self, request_path, payload=None, content_type="application/octet-stream", timeout=None, extra_headers=None, **kwargs): """Sends an RPC and returns the response. | 457,844 |
def _Authenticate(self): """Save the cookie jar after authentication.""" super(HttpRpcServer, self)._Authenticate() if self.save_cookies: StatusUpdate("Saving authentication cookies to %s" % self.cookie_file) self.cookie_jar.save() | def _Authenticate(self, *args): """Save the cookie jar after authentication.""" super(HttpRpcServer, self)._Authenticate() if self.save_cookies: StatusUpdate("Saving authentication cookies to %s" % self.cookie_file) self.cookie_jar.save() | 457,845 |
def _Authenticate(self): """Save the cookie jar after authentication.""" super(HttpRpcServer, self)._Authenticate() if self.save_cookies: StatusUpdate("Saving authentication cookies to %s" % self.cookie_file) self.cookie_jar.save() | def _Authenticate(self): """Save the cookie jar after authentication.""" super(HttpRpcServer, self)._Authenticate(*args) if self.save_cookies: StatusUpdate("Saving authentication cookies to %s" % self.cookie_file) self.cookie_jar.save() | 457,846 |
def DiffItem(filename, full_move=False, revision=None): """Diffs a single file. | def DiffItem(filename, full_move=False, revision=None): """Diffs a single file. | 457,847 |
def DiffItem(filename, full_move=False, revision=None): """Diffs a single file. | def DiffItem(filename, full_move=False, revision=None): """Diffs a single file. | 457,848 |
def DiffItem(filename, full_move=False, revision=None): """Diffs a single file. | def DiffItem(filename, full_move=False, revision=None): """Diffs a single file. | 457,849 |
def Warn(msg): ErrorExit(msg, exit=False) | def Warn(msg): ErrorExit(msg, exit=False) | 457,850 |
def ErrorExit(msg, do_exit=True): """Print an error message to stderr and optionally exit.""" print >> sys.stderr, msg if do_exit: sys.exit(1) | def ErrorExit(msg, do_exit=True): """Print an error message to stderr and optionally exit.""" print >> sys.stderr, msg def ErrorExit(msg): print >> sys.stderr, msg sys.exit(1) | 457,851 |
def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository. | def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository. | 457,852 |
def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository. | def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository. | 457,853 |
def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository. | def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository. | 457,854 |
def revert(self, options, args, file_list): """Reverts local modifications. | def revert(self, options, args, file_list): """Reverts local modifications. | 457,855 |
def diff(self, options, args, file_list): # NOTE: This function does not currently modify file_list. path = os.path.join(self._root_dir, self.relpath) if not os.path.isdir(path): raise gclient_utils.Error('Directory %s is not present.' % path) self._Run(['diff'] + args, options) | def diff(self, options, args, file_list): # NOTE: This function does not currently modify file_list. if not os.path.isdir(self.checkout_path): raise gclient_utils.Error('Directory %s is not present.' % self.checkout_path) self._Run(['diff'] + args, options) | 457,856 |
def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository.""" path = os.path.join(self._root_dir, self.relpath) if not os.path.isdir(path): raise gclient_utils.Error('Directory %s is not present.' % path) command = ['svn', 'diff', '-x', '--ignore-eol-style'] ... | def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository.""" path = os.path.join(self._root_dir, self.relpath) if not os.path.isdir(path): raise gclient_utils.Error('Directory %s is not present.' % path) command = ['svn', 'diff', '-x', '--ignore-eol-style'] ... | 457,857 |
def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | 457,858 |
def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | 457,859 |
def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | 457,860 |
def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | 457,861 |
def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | 457,862 |
def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | 457,863 |
def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | 457,864 |
def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | 457,865 |
def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | 457,866 |
def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | 457,867 |
def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs svn to update or transparently checkout the working copy. | 457,868 |
def updatesingle(self, options, args, file_list): checkout_path = os.path.join(self._root_dir, self.relpath) filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations will on... | def updatesingle(self, options, args, file_list): filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations will only apply to the one file we checked out. command = ["checko... | 457,869 |
def updatesingle(self, options, args, file_list): checkout_path = os.path.join(self._root_dir, self.relpath) filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations will on... | def updatesingle(self, options, args, file_list): checkout_path = os.path.join(self._root_dir, self.relpath) filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(self.checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations wi... | 457,870 |
def updatesingle(self, options, args, file_list): checkout_path = os.path.join(self._root_dir, self.relpath) filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations will on... | def updatesingle(self, options, args, file_list): checkout_path = os.path.join(self._root_dir, self.relpath) filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations will on... | 457,871 |
def updatesingle(self, options, args, file_list): checkout_path = os.path.join(self._root_dir, self.relpath) filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations will on... | def updatesingle(self, options, args, file_list): checkout_path = os.path.join(self._root_dir, self.relpath) filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations will on... | 457,872 |
def updatesingle(self, options, args, file_list): checkout_path = os.path.join(self._root_dir, self.relpath) filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations will on... | def updatesingle(self, options, args, file_list): checkout_path = os.path.join(self._root_dir, self.relpath) filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations will on... | 457,873 |
def updatesingle(self, options, args, file_list): checkout_path = os.path.join(self._root_dir, self.relpath) filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations will on... | def updatesingle(self, options, args, file_list): checkout_path = os.path.join(self._root_dir, self.relpath) filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations will on... | 457,874 |
def revert(self, options, args, file_list): """Reverts local modifications. Subversion specific. | def revert(self, options, args, file_list): """Reverts local modifications. Subversion specific. | 457,875 |
def revert(self, options, args, file_list): """Reverts local modifications. Subversion specific. | def revert(self, options, args, file_list): """Reverts local modifications. Subversion specific. | 457,876 |
def status(self, options, args, file_list): """Display status information.""" path = os.path.join(self._root_dir, self.relpath) command = ['status'] + args if not os.path.isdir(path): # svn status won't work if the directory doesn't exist. options.stdout.write( ('\n________ couldn\'t run \'%s\' in \'%s\':\nThe director... | def status(self, options, args, file_list): """Display status information.""" command = ['status'] + args if not os.path.isdir(path): # svn status won't work if the directory doesn't exist. options.stdout.write( ('\n________ couldn\'t run \'%s\' in \'%s\':\nThe directory ' 'does not exist.') % (' '.join(command), path)... | 457,877 |
def status(self, options, args, file_list): """Display status information.""" path = os.path.join(self._root_dir, self.relpath) command = ['status'] + args if not os.path.isdir(path): # svn status won't work if the directory doesn't exist. options.stdout.write( ('\n________ couldn\'t run \'%s\' in \'%s\':\nThe director... | def status(self, options, args, file_list): """Display status information.""" path = os.path.join(self._root_dir, self.relpath) command = ['status'] + args if not os.path.isdir(self.checkout_path): # svn status won't work if the directory doesn't exist. options.stdout.write( ('\n________ couldn\'t run \'%s\' in \'%s\':... | 457,878 |
def status(self, options, args, file_list): """Display status information.""" path = os.path.join(self._root_dir, self.relpath) command = ['status'] + args if not os.path.isdir(path): # svn status won't work if the directory doesn't exist. options.stdout.write( ('\n________ couldn\'t run \'%s\' in \'%s\':\nThe director... | def status(self, options, args, file_list): """Display status information.""" path = os.path.join(self._root_dir, self.relpath) command = ['status'] + args if not os.path.isdir(path): # svn status won't work if the directory doesn't exist. options.stdout.write( ('\n________ couldn\'t run \'%s\' in \'%s\':\nThe director... | 457,879 |
def _Run(self, args, options, **kwargs): """Runs a commands that goes to stdout.""" kwargs.setdefault('cwd', os.path.join(self._root_dir, self.relpath)) gclient_utils.CheckCallAndFilterAndHeader(['svn'] + args, always=options.verbose, stdout=options.stdout, **kwargs) | def _Run(self, args, options, **kwargs): """Runs a commands that goes to stdout.""" kwargs.setdefault('cwd', self.checkout_path) gclient_utils.CheckCallAndFilterAndHeader(['svn'] + args, always=options.verbose, stdout=options.stdout, **kwargs) | 457,880 |
def _RunAndGetFileList(self, args, options, file_list, cwd=None): """Runs a commands that goes to stdout and grabs the file listed.""" cwd = cwd or os.path.join(self._root_dir, self.relpath) scm.SVN.RunAndGetFileList(options.verbose, args, cwd=cwd, file_list=file_list, stdout=options.stdout) | def _RunAndGetFileList(self, args, options, file_list, cwd=None): """Runs a commands that goes to stdout and grabs the file listed.""" cwd = cwd or self.checkout_path scm.SVN.RunAndGetFileList(options.verbose, args, cwd=cwd, file_list=file_list, stdout=options.stdout) | 457,881 |
def checkoutRevision(url, revision, branch_url, revert=False): files_info = getFileInfo(url, revision) paths = getBestMergePaths2(files_info, revision) export_map = getBestExportPathsMap2(files_info, revision) command = 'svn checkout -N ' + branch_url print command os.system(command) match = re.search(r"svn://.*/(.*)... | def checkoutRevision(url, revision, branch_url, revert=False): files_info = getFileInfo(url, revision) paths = getBestMergePaths2(files_info, revision) export_map = getBestExportPathsMap2(files_info, revision) command = 'svn checkout -N ' + branch_url print command os.system(command) match = re.search(r"^[a-z]+://.*/... | 457,882 |
def __init__(self, parent, name, url, safesync_url=None, custom_deps=None, custom_vars=None, deps_file=None): GClientKeywords.__init__(self) self.parent = parent self.name = name self.url = url self.parsed_url = None # These 2 are only set in .gclient and not in DEPS files. self.safesync_url = safesync_url self.custom_... | def __init__(self, parent, name, url, safesync_url=None, custom_deps=None, custom_vars=None, deps_file=None): GClientKeywords.__init__(self) self.parent = parent self.name = name self.url = url self.parsed_url = None # These 2 are only set in .gclient and not in DEPS files. self.safesync_url = safesync_url self.custom_... | 457,883 |
def cleanup(self, options, args, file_list): """Cleanup working copy.""" __pychecker__ = 'unusednames=args,file_list,options' self._Run(['prune'], redirect_stdout=False) self._Run(['fsck'], redirect_stdout=False) self._Run(['gc'], redirect_stdout=False) | def cleanup(self, options, args, file_list): """Cleanup working copy.""" __pychecker__ = 'unusednames=options,args,file_list' self._Run(['prune'], redirect_stdout=False) self._Run(['fsck'], redirect_stdout=False) self._Run(['gc'], redirect_stdout=False) | 457,884 |
def diff(self, options, args, file_list): __pychecker__ = 'unusednames=args,file_list,options' merge_base = self._Run(['merge-base', 'HEAD', 'origin']) self._Run(['diff', merge_base], redirect_stdout=False) | def diff(self, options, args, file_list): __pychecker__ = 'unusednames=options,args,file_list' merge_base = self._Run(['merge-base', 'HEAD', 'origin']) self._Run(['diff', merge_base], redirect_stdout=False) | 457,885 |
def export(self, options, args, file_list): """Export a clean directory tree into the given path. | def export(self, options, args, file_list): """Export a clean directory tree into the given path. | 457,886 |
def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository. | def pack(self, options, args, file_list): """Generates a patch file which can be applied to the root of the repository. | 457,887 |
def revinfo(self, options, args, file_list): """Display revision""" __pychecker__ = 'unusednames=args,file_list,options' return self._Run(['rev-parse', 'HEAD']) | def revinfo(self, options, args, file_list): """Display revision""" __pychecker__ = 'unusednames=options,args,file_list' return self._Run(['rev-parse', 'HEAD']) | 457,888 |
def status(self, options, args, file_list): """Display status information.""" __pychecker__ = 'unusednames=args,options' if not os.path.isdir(self.checkout_path): print('\n________ couldn\'t run status in %s:\nThe directory ' 'does not exist.' % self.checkout_path) else: merge_base = self._Run(['merge-base', 'HEAD', 'o... | def status(self, options, args, file_list): """Display status information.""" __pychecker__ = 'unusednames=options,args' if not os.path.isdir(self.checkout_path): print('\n________ couldn\'t run status in %s:\nThe directory ' 'does not exist.' % self.checkout_path) else: merge_base = self._Run(['merge-base', 'HEAD', 'o... | 457,889 |
def DiffItem(filename, full_move=False, revision=None): """Diffs a single file. | def DiffItem(filename, full_move=False, revision=None): """Diffs a single file. | 457,890 |
def __init__(self, relpath): # Note that we always use '/' as the path separator to be # consistent with svn's cygwin-style output on Windows self._relpath = relpath.replace("\\", "/") self._current_file = "" self._replacement_file = "" | def __init__(self, relpath, stdout): # Note that we always use '/' as the path separator to be # consistent with svn's cygwin-style output on Windows self._relpath = relpath.replace("\\", "/") self._current_file = "" self._replacement_file = "" | 457,891 |
def ReplaceAndPrint(self, line): print(line.replace(self._current_file, self._replacement_file)) | def ReplaceAndPrint(self, line): print(line.replace(self._current_file, self._replacement_file)) | 457,892 |
def Filter(self, line): if (line.startswith(self.index_string)): self.SetCurrentFile(line[len(self.index_string):]) self.ReplaceAndPrint(line) else: if (line.startswith(self.original_prefix) or line.startswith(self.working_prefix)): self.ReplaceAndPrint(line) else: print line | def Filter(self, line): if (line.startswith(self.index_string)): self.SetCurrentFile(line[len(self.index_string):]) line = self._Replace(line) else: if (line.startswith(self.original_prefix) or line.startswith(self.working_prefix)): line = self._Replace(line) else: print line | 457,893 |
def Filter(self, line): if (line.startswith(self.index_string)): self.SetCurrentFile(line[len(self.index_string):]) self.ReplaceAndPrint(line) else: if (line.startswith(self.original_prefix) or line.startswith(self.working_prefix)): self.ReplaceAndPrint(line) else: print line | def Filter(self, line): if (line.startswith(self.index_string)): self.SetCurrentFile(line[len(self.index_string):]) self.ReplaceAndPrint(line) else: if (line.startswith(self.original_prefix) or line.startswith(self.working_prefix)): self.ReplaceAndPrint(line) else: print line | 457,894 |
def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | defupdate(self,options,args,file_list):"""Runsgittoupdateortransparentlycheckouttheworkingcopy. | 457,895 |
def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | 457,896 |
def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | 457,897 |
def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | 457,898 |
def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | 457,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.