by
Changes to 6 files · Browse files at aaac856508a0 Showing diff from parent 123811ec40a6 774617fd1cc6 Diff from another changeset...
@@ -121,7 +121,14 @@ self.cwd = cwd or os.getcwd()
self.ui = ui
self.ui.setconfig('ui', 'interactive', 'off')
- self.repo = repo or hg.repository(ui, path=paths.find_root())
+ if repo:
+ self.repo = repo
+ else:
+ root = paths.find_root()
+ if root:
+ self.repo = hg.repository(ui, path=root)
+ else:
+ self.repo = None
self.pats = pats
self.opts = opts
self.tmproot = None
|
@@ -10,7 +10,7 @@ import gtk
import gobject
import re
-from mercurial import util
+from mercurial import util, templatefilters
from mercurial.hgweb import webutil
from thgutil import hglib
from hggtk import gtklib
@@ -41,7 +41,6 @@ self.branch_names = {}
self.repo = repo
self.line_graph_data = graphdata
- self.author_re = re.compile('<.*@.*>', 0)
self.color_func = color_func
self.parents = [x.rev() for x in repo.parents()]
self.heads = [repo[x].rev() for x in repo.heads()]
@@ -136,11 +135,9 @@ bstr += '<span color="%s" background="%s"> %s </span> ' % \
('black', '#aaffaa', branch)
- if '<' in ctx.user():
- author = self.author_re.sub('', ctx.user()).strip(' ')
- else:
+ author = templatefilters.person(ctx.user())
+ if not author:
author = util.shortuser(ctx.user())
-
author = hglib.toutf(author)
date = hglib.displaytime(ctx.date())
utc = hglib.utctime(ctx.date())
|
@@ -27,7 +27,7 @@ "Commit changes in repository",
"menucommit.ico", 0},
{"init", "Create Repository Here",
- "Create a new repository in this directory",
+ "Create a new repository",
"menucreaterepos.ico", 0},
{"clone", "Clone a Repository",
"Create clone here from source",
@@ -63,7 +63,7 @@ "Update working directory",
"menucheckout.ico", 0},
{"recover", "Recovery...",
- "General repair and recovery of repository",
+ "Repair and recovery of repository",
"general.ico", 0},
{"thgstatus", "Update Icons",
"Update icons for this repository",
@@ -78,7 +78,7 @@ "Show About Dialog",
"menuabout.ico", 0},
{"datamine", "Annotate Files",
- "Show changeset information per file line",
+ "Changeset information per file line",
"menublame.ico", 0},
{"vdiff", "Visual Diff",
"View changes using GUI diff tool",
@@ -478,7 +478,9 @@
TDEBUG_TRACE(
"CShellExt::GetCommandString: idCmd = " << idCmd
- << ", uFlags = " << uFlags << " (" << sflags << ")");
+ << ", uFlags = " << uFlags << " (" << sflags << ")"
+ << ", cchMax = " << cchMax
+ );
MenuIdCmdMap::iterator iter = MenuIdMap.find(static_cast<UINT>(idCmd));
if (iter == MenuIdMap.end())
|
|
|
|
|
Loading...