Adding phase support to TortoiseHG

Angel Ezquerra Moreu angel.ezquerra at gmail.com
Sat Jan 21 18:34:39 CST 2012


Hi,

I'm working on adding phases support to TortoiseHg. I have a few
questions that hopefully someone can help me with:

- Looking at the code for the phases command, it seems that the
easiest way to get the phase for each revision is to use the
phasestr() method of the context object. Is that correct? I am worried
that it may be expensive to call that method for each and every
revision. Is there any other way?

- What should be the phase that should be shown when TortoiseHg is
shown in combination with an older mercurial version? Would that be
"draft"?

- What is the best way to tell if a repo has any phase data and
whether it is a publishing or a non publishing repo? Old repos are
considered non publishing, right?

Thanks,

Angel


More information about the Mercurial-devel mailing list