Submitter | Sean Farley |
---|---|
Date | March 28, 2014, 5:53 p.m. |
Message ID | <7ec54f5a811e6858baf7.1396029197@laptop.local> |
Download | mbox | patch |
Permalink | /patch/4103/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -641,10 +641,14 @@ class localrepository(object): tags[encoding.tolocal(name)] = node tagtypes = dict([(encoding.tolocal(name), value) for (name, value) in tagtypes.iteritems()]) return (tags, tagtypes) + def localtags(self): + '''return a mapping of local tag to node''' + return self._findlocaltags()[0] + def tagtype(self, tagname): ''' return the type of the given tag. result can be: 'local' : a local tag