![]() The name of the changelist containing the changes you want to shelve will be used as the shelf name. To do this, select a file or a changelist you want to shelve, and click the Shelve Silently icon on the toolbar, or press Ctrl+Shift+H. You can also shelve changes silently, without displaying the Shelve Changes dialog. In the Commit Message field, enter the name of the shelf to be created and click the Shelve Changes button. In the Shelve Changes dialog, review the list of modified files. In the Commit tool window Alt+0, right-click the files or the changelist you want to put to a shelf and select Shelve changes from the context menu. Once shelved, a change can be applied as many times as you need. You cannot shelve unversioned files, which are files that have not been added to version control. With IntelliJ IDEA, you can shelve both separate files and entire changelists. This is useful, for example, if you need to switch to another task, and you want to set your changes aside to work on them later. Shelving is temporarily storing pending changes you have not committed yet. special () or len ( h ) > 1 ], ) def refilterpatch ( allchunk, selected ): ''' return unshelved chunks of files to be shelved ''' l = fil = for c in allchunk : if isinstance ( c, header ): if len ( l ) > 1 and l in selected : fil += l l = elif c not in selected : l. append ( chunk ) else : fixoffset += chunk. ![]() filename ()) if r = 'y' : if fixoffset : chunk = copy. ![]() pretty ( ui ) r = prompt ( _ ( 'shelve this change to %r ?' ) % chunk. allhunks (): applied += consumefile () else : consumefile () else : if resp_file is None and resp_all is None : chunk. ![]() files ()))) if r = 'y' : applied = if chunk. pretty ( ui ) r = prompt ( _ ( 'shelve changes to %s ?' ) % _ ( ' and ' ). header ) if hdr in seen : consumefile () continue seen = True if resp_all is None : chunk. pop () if isinstance ( chunk, header ): resp_file = fixoffset = 0 hdr = ''. Abort ( _ ( 'user quit' )) return r while chunks : chunk = chunks. strip ()), ' \n ' ) continue elif r = 's' : r = resp_file = 'n' elif r = 'f' : r = resp_file = 'y' elif r = 'd' : r = resp_all = 'n' elif r = 'a' : r = resp_all = 'y' elif r = 'q' : raise util. find ( 'y - shelve this change' ) for l in shelve. compile ( -(\d+),(\d+) \+(\d+),(\d+) ) def internalpatch ( patchobj, ui, strip, cwd, files = def prompt ( query ): if resp_all is not None : return resp_all if resp_file is not None : return resp_file while True : r = ( ui. '''interactive change selection to set aside that may be restored later''' import copy import cStringIO import errno import operator import os import re import shutil import tempfile from mercurial import cmdutil, commands, cmdutil, hg, mdiff, patch, revlog from mercurial import util, fancyopts from 18n import _ from tortoisehg.util import hglib lines_re = re. # hgshelve.py - TortoiseHg dialog to initialize a repo # Copyright 2007 Bryan O'Sullivan # Copyright 2007 TK Soh # Copyright 2009 Steve Borho # This software may be used and distributed according to the terms of the # GNU General Public License version 2, incorporated herein by reference.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |