Mercurial and Git clients can push and pull from this alias URL to interact with this repository. You can change to which repository an alias points by going to the Aliases link on the project page.
# Copyright (c) 2009-2010 LOGILAB S.A. (Paris, FRANCE).# http://www.logilab.fr/ -- mailto:contact@logilab.fr## This program is free software; you can redistribute it and/or modify it under# the terms of the GNU General Public License as published by the Free Software# Foundation; either version 2 of the License, or (at your option) any later# version.## This program is distributed in the hope that it will be useful, but WITHOUT# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.## You should have received a copy of the GNU General Public License along with# this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-from tortoisehg.hgqt.repomodel import HgRepoListModel
+from tortoisehg.hgqt.repomodel import HgRepoListModel, COLUMNNAMESfrom tortoisehg.hgqt.graph import Graph, filelog_grapher
+from tortoisehg.hgqt.i18n import _from PyQt4.QtCore import *
classFileRevModel(HgRepoListModel):""" Model used to manage the list of revisions of a file, in file viewer of in diff-file viewer dialogs. """filled=pyqtSignal()_allcolumns=('Rev','Branch','Description','Author','Age','LocalTime','UTCTime','Tags','Filename')_columns=('Rev','Branch','Description','Author','Age','Filename')_stretchs={'Description':1,}_getcolumns="getFilelogColumns"def__init__(self,repo,filename=None,parent=None):""" data is a HgHLRepo instance
"""
HgRepoListModel.__init__(self, repo, '', [], False, parent)
+ COLUMNNAMES['Filename'] = _('Filename', 'column header') self.setFilename(filename)
def setRepo(self, repo, branch='', fromhead=None, follow=False):
self.repo=repoself._datacache={}self.reloadConfig()defsetFilename(self,filename):self.filename=filenameself._user_colors={}self._branch_colors={}self.rowcount=0self._datacache={}ifself.filename:grapher=filelog_grapher(self.repo,self.filename)self.graph=Graph(self.repo,grapher)fl=self.repo.file(self.filename)# we use fl.index here (instead of linkrev) cause# linkrev API changed between 1.0 and 1.?. So this# works with both versions.self.heads=[fl.index[fl.rev(x)][4]forxinfl.heads()]self.ensureBuilt(row=self.fill_step/2)QTimer.singleShot(0,lambda:self.filled.emit())self._fill_timer=self.startTimer(500)else:self.graph=Noneself.heads=[]
Attach a Trello Card
Add a tag
Your session has expired
You are no longer logged in. Please log in and try your request again.
Filter RSS Feed
This RSS feed URL allows you to see the contents of your current filter using any feed reader.
This link includes a special authentication token. If you share the URL with anyone else, they can see this RSS feed's activity. You can disable these tokens when needed.
Your current filter is unsaved; changing it won't affect this RSS feed.