![]() localpath (), b 'rb' ) 189 else : 190 return url. url (path, parsequery = False, parsefragment = False ) 187 if pathurl. local () 182 183 184 def openpath (ui, path, sendaccept = True ): 185 '''open path with open if local, url.open if remote''' 186 pathurl = urlutil. deprecwarn (b "use obj.local() instead of islocal(obj)", b "6.4" ) 181 return repo. islocal (repo ) # pytype: disable=module-attr 179 return False 180 repo. ![]() ![]() safehasattr (cls, 'islocal' ): 178 return cls. instance # make sure we load the module 175 else : 176 cls = LocalFactory 177 if util. make_peer # make sure we load the module 172 elif scheme in repo_schemes : 173 cls = repo_schemes 174 cls. scheme or b 'file' 169 if scheme in peer_schemes : 170 cls = peer_schemes 171 cls. callcommand (b 'branchmap', 162 163 164 def islocal (repo ): 165 '''return true if repo (or path pointing to repo) is local''' 166 if isinstance (repo, bytes ): 167 u = urlutil. commandexecutor () as e : 94 branchmap = e. append (hashbranch ) 91 return revs, revs 92 93 with peer. Abort ( _ (b "remote branch lookup not supported" )) 90 revs. capable (b 'branchmap' ): 88 if branches : 89 raise error. peer () 72 else : 73 peer = other 74 hashbranch, branches = branches 75 if not hashbranch and not branches : 76 x = revs or None 77 if revs : 78 y = revs 79 else : 80 y = None 81 return x, y 82 if revs : 83 revs = list (revs ) 84 else : 85 revs = 86 87 if not peer. safehasattr (other, 'peer' ): 70 # a courtesy to callers using a localrepo for other 71 peer = other. ![]() release 63 64 # shared features 65 sharedbookmarks = b 'bookmarks' 66 67 68 def addbranchrevs (lrepo, other, branches, revs ): 69 if util. utils import ( 56 hashutil, 57 stringutil, 58 urlutil, 59 ) 60 61 62 release = lock. interfaces import repository as repositorymod 55 from. ![]() import ( 25 bookmarks, 26 bundlerepo, 27 cmdutil, 28 destutil, 29 discovery, 30 error, 31 exchange, 32 extensions, 33 graphmod, 34 httppeer, 35 localrepo, 36 lock, 37 logcmdutil, 38 logexchange, 39 merge as mergemod, 40 mergestate as mergestatemod, 41 narrowspec, 42 phases, 43 requirements, 44 scmutil, 45 sshpeer, 46 statichttprepo, 47 ui as uimod, 48 unionrepo, 49 url, 50 util, 51 verify as verifymod, 52 vfs as vfsmod, 53 ) 54 from. node import ( 18 hex, 19 sha1nodeconstants, 20 short, 21 ) 22 from. 8 9 10 import os 11 import posixpath 12 import shutil 13 import stat 14 import weakref 15 16 from. As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers.Īlternatively you can here view or download the uninterpreted source code file.įor more information about "hg.py" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 6.3.3_vs_6.4rc0.ġ # hg.py - repository classes for mercurial 2 # 3 # Copyright 2005-2007 Olivia Mackall 4 # Copyright 2006 Vadim Gelfer 5 # 6 # This software may be used and distributed according to the terms of the 7 # GNU General Public License version 2 or any later version. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |