Mercurial > traipse_dev
annotate upmana/mercurial/repo.py @ 135:dcf4fbe09b70 beta
Traipse Beta 'OpenRPG' {091010-00}
Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on
code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc's main goal is to
offer more advanced features and enhance the productivity of the user.
Update Summary (Beta)
Added Bookmarks
Fix to Remote Admin Commands
Minor fix to text based Server
Fix to Pretty Print, from Core
Fix to Splitter Nodes not being created
Fix to massive amounts of images loading, from Core
Added 'boot' command to remote admin
Added confirmation window for sent nodes
Minor changes to allow for portability to an OpenSUSE linux OS
Miniatures Layer pop up box allows users to turn off Mini labels, from FlexiRPG
Zoom Mouse plugin added
Images added to Plugin UI
Switching to Element Tree
Map efficiency, from FlexiRPG
Added Status Bar to Update Manager
default_manifest.xml renamed to default_upmana.xml
Cleaner clode for saved repositories
New TrueDebug Class in orpg_log (See documentation for usage)
Mercurial's hgweb folder is ported to upmana
**Pretty important update that can help remove thousands of dead children from your gametree.
**Children, <forms />, <group_atts />, <horizontal />, <cols />, <rows />, <height />, etc... are all tags now. Check your gametree and
look for dead children!!
**New Gamtree Recusion method, mapping, and context sensitivity. !!Alpha - Watch out for infinite loops!!
author | sirebral |
---|---|
date | Tue, 10 Nov 2009 14:11:28 -0600 |
parents | |
children |
rev | line source |
---|---|
135 | 1 # repo.py - repository base classes for mercurial |
2 # | |
3 # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com> | |
4 # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com> | |
5 # | |
6 # This software may be used and distributed according to the terms of the | |
7 # GNU General Public License version 2, incorporated herein by reference. | |
8 | |
9 from i18n import _ | |
10 import error | |
11 | |
12 class repository(object): | |
13 def capable(self, name): | |
14 '''tell whether repo supports named capability. | |
15 return False if not supported. | |
16 if boolean capability, return True. | |
17 if string capability, return string.''' | |
18 if name in self.capabilities: | |
19 return True | |
20 name_eq = name + '=' | |
21 for cap in self.capabilities: | |
22 if cap.startswith(name_eq): | |
23 return cap[len(name_eq):] | |
24 return False | |
25 | |
26 def requirecap(self, name, purpose): | |
27 '''raise an exception if the given capability is not present''' | |
28 if not self.capable(name): | |
29 raise error.CapabilityError( | |
30 _('cannot %s; remote repository does not ' | |
31 'support the %r capability') % (purpose, name)) | |
32 | |
33 def local(self): | |
34 return False | |
35 | |
36 def cancopy(self): | |
37 return self.local() | |
38 | |
39 def rjoin(self, path): | |
40 url = self.url() | |
41 if url.endswith('/'): | |
42 return url + path | |
43 return url + '/' + path |