[Ohrrpgce] SVN: teeemcee/4910 import pyPEG 1.4, a Parsing Expression Grammar interpreter for Python. h

2011-11-15 Thread subversion
teeemcee
2011-11-15 07:48:48 -0800 (Tue, 15 Nov 2011)
92
import pyPEG 1.4, a Parsing Expression Grammar interpreter for Python. 
http://fdik.org/pyPEG
---
A   wip/reloadbasic/
A   wip/reloadbasic/pyPEG.py
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/4911 pyPEG: track the matching range of each Symbol. Stored as start, end off

2011-11-15 Thread subversion
teeemcee
2011-11-15 07:49:03 -0800 (Tue, 15 Nov 2011)
86
pyPEG: track the matching range of each Symbol. Stored as start, end offsets in 
a Name
---
U   wip/reloadbasic/pyPEG.py
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/4913 pyPEG: Checkpoints and beautiful error messages! PEG parsers generally c

2011-11-15 Thread subversion
teeemcee
2011-11-15 07:49:36 -0800 (Tue, 15 Nov 2011)
107
pyPEG: Checkpoints and beautiful error messages! PEG parsers generally can't 
explain syntax errors *at all*
---
U   wip/reloadbasic/pyPEG.py
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/4914 pyPEG: add forceKeywords option and patternCache optimisation

2011-11-15 Thread subversion
teeemcee
2011-11-15 07:49:59 -0800 (Tue, 15 Nov 2011)
61
pyPEG: add forceKeywords option and patternCache optimisation
---
U   wip/reloadbasic/pyPEG.py
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/4915 pyPEG: fix error ^ position when the input text contains tabs

2011-11-15 Thread subversion
teeemcee
2011-11-15 07:50:12 -0800 (Tue, 15 Nov 2011)
61
pyPEG: fix error ^ position when the input text contains tabs
---
U   wip/reloadbasic/pyPEG.py
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/4916 pyPEG: Cache whitespace+comment skipping more directly; gives me a 33% s

2011-11-15 Thread subversion
teeemcee
2011-11-15 07:50:28 -0800 (Tue, 15 Nov 2011)
79
pyPEG: Cache whitespace+comment skipping more directly; gives me a 33% speedup.
---
U   wip/reloadbasic/pyPEG.py
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/4917 pyPEG: OK, now some RB-specific changes: replace parseLine with LinePars

2011-11-15 Thread subversion
teeemcee
2011-11-15 07:50:40 -0800 (Tue, 15 Nov 2011)
124
pyPEG: OK, now some RB-specific changes: replace parseLine with LineParser 
class. Preserves pattern cache from line to line.
---
U   wip/reloadbasic/pyPEG.py
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/4918 xmlast.py, based on the file of the same name from the pyPEG website. Fo

2011-11-15 Thread subversion
teeemcee
2011-11-15 07:51:21 -0800 (Tue, 15 Nov 2011)
124
xmlast.py, based on the file of the same name from the pyPEG website. Formats 
nicely unlike that other one. Includes ranges.
---
A   wip/reloadbasic/xmlast.py
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/4919 Start implementing RELOADBasic. The grammar and source-AST is done, eve

2011-11-15 Thread subversion
teeemcee
2011-11-15 07:51:38 -0800 (Tue, 15 Nov 2011)
156
Start implementing RELOADBasic. The grammar and source-AST is done, everything 
else is part done.

Or should that be ReloadBASIC? ReloadBasic? RELOADBASIC?
---
A   wip/reloadbasic/reloadbasic.py
U   wip/reloadbasic/xmlast.py
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] SVN: teeemcee/4919 Start implementing RELOADBasic. The grammar and source-AST is done, eve

2011-11-15 Thread James Paige
On Tue, Nov 15, 2011 at 07:51:44AM -0800, subvers...@hamsterrepublic.com wrote:
 teeemcee
 2011-11-15 07:51:38 -0800 (Tue, 15 Nov 2011)
 156
 Start implementing RELOADBasic. The grammar and source-AST is done, 
 everything else is part done.
 
 Or should that be ReloadBASIC? ReloadBasic? RELOADBASIC?
 ---

For consistency with OHRRPGCE coding standards, Suggest that we 
capitalize ReLOADBasIC differently every time we type it ;)

---
James
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] SVN: teeemcee/4906 Displaying tags in Custom:

2011-11-15 Thread James Paige
On Wed, Nov 16, 2011 at 05:05:13AM +1300, Ralph Versteegen wrote:
 On 14 November 2011 13:02, James Paige b...@hamsterrepublic.com wrote:
  On Sun, Nov 13, 2011 at 09:06:06AM -0800, subvers...@hamsterrepublic.com 
  wrote:
  teeemcee
  2011-11-13 09:06:06 -0800 (Sun, 13 Nov 2011)
  685
  Displaying tags in Custom:
  -All tag displaying in Custom now uses the 
  tag_{set|toggle|condition}_caption functions
  -This fixed a few strange/inappropriate/inaccurate messages, like set TAG 
  1=ON (Always) instead of set TAG 1=ON (Unchangable). I'm not really 
  happy with unchangeable, but it's trivial to change now
  -tag_set_caption displays a [AUTOSET] warning when it is an error to set 
  the tag
  -The tag browser can list where an AUTOSET tag is set, and refuses to 
  allow selecting one when inappropriate
  -Improved the tag conditions 'preview' in NPC editor, and split it out as 
  explain_two_tag_condition
 
  herotags() and itemtags() aren't updated yet, split into a separate commit.
 
  This is great! It is cool to be able to look at the tag list in
  Wandering Hamster at a glance and see which ones are attached to heroes
  and items.
 
  ---
  James
 
 It would be nice to extend it to showing all uses of each tag. (It
 could take a while to scan the whole RPG file though. And keeping a
 cache and updating it any time you modify anything is a bit
 burdensome.)

That would be awesome. What about doing the full scan only on request? 
After pressing some key?

 Oh, also, currently you should not set a tag as both an autoset hero
 tag and as an autoset item tag, because that's leads to
 unpredictable/undefined behaviour. We should either support it, by
 combining evalherotags and evalitemtags, or we should make the tag
 browser show a big red error when you do this (or even show a warning
 upon loading the game). I don't have a strong preference.

I think I would favor allowing it, but with a warning when you set it, 
and show it in red in the list (for easily spotting places where old 
games already do this)

---
James
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] Was anybody using websvn?

2011-11-15 Thread James Paige
Was anybody using the websvn interface to the ohrrpgce repository on 
gilgamesh? I only occasionally used it myself because it was nice to be 
able to use the blame feature to figure out when a specific line was 
last changed.

I had to disable it today because msnbot decided to spider it very 
agressively. It was trying to get the full blame for every single 
revision of ever single file (and showing the blame requires fetching 
the entire revision history of the file), and it was doing that with no 
delay at all.

---
James
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] Was anybody using websvn?

2011-11-15 Thread Adam Perry
On Tue, Nov 15, 2011 at 10:31 AM, James Paige b...@hamsterrepublic.comwrote:

 Was anybody using the websvn interface to the ohrrpgce repository on
 gilgamesh? I only occasionally used it myself because it was nice to be
 able to use the blame feature to figure out when a specific line was
 last changed.


I use it occasionally. I don't suppose you can just disable blame?
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] Was anybody using websvn?

2011-11-15 Thread Mike Caron

On 15/11/2011 1:39 PM, Adam Perry wrote:



On Tue, Nov 15, 2011 at 10:31 AM, James Paige b...@hamsterrepublic.com
mailto:b...@hamsterrepublic.com wrote:

Was anybody using the websvn interface to the ohrrpgce repository on
gilgamesh? I only occasionally used it myself because it was nice to be
able to use the blame feature to figure out when a specific line was
last changed.


I use it occasionally. I don't suppose you can just disable blame?



Better yet, why not just add it to robots.txt so MSN bot doesn't even 
try to go there?


--
- Mike Caron
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] Was anybody using websvn?

2011-11-15 Thread James Paige
On Tue, Nov 15, 2011 at 10:39:25AM -0800, Adam Perry wrote:
On Tue, Nov 15, 2011 at 10:31 AM, James Paige b...@hamsterrepublic.com
wrote:
 
  Was anybody using the websvn interface to the ohrrpgce repository on
  gilgamesh? I only occasionally used it myself because it was nice to be
  able to use the blame feature to figure out when a specific line was
  last changed.
 
I use it occasionally. I don't suppose you can just disable blame?


But that is the best feature!

I updated my robots.txt file to tell msnbot to chill out, but it might 
take a day or two before it re-fetches my robots.txt. After that, I will 
re-enable websvn and hopefully it will be okay after that.

---
James
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] Was anybody using websvn?

2011-11-15 Thread Ralph Versteegen
On 16 November 2011 07:42, James Paige b...@hamsterrepublic.com wrote:
 On Tue, Nov 15, 2011 at 10:39:25AM -0800, Adam Perry wrote:
    On Tue, Nov 15, 2011 at 10:31 AM, James Paige b...@hamsterrepublic.com
    wrote:

      Was anybody using the websvn interface to the ohrrpgce repository on
      gilgamesh? I only occasionally used it myself because it was nice to be
      able to use the blame feature to figure out when a specific line was
      last changed.

    I use it occasionally. I don't suppose you can just disable blame?


 But that is the best feature!

 I updated my robots.txt file to tell msnbot to chill out, but it might
 take a day or two before it re-fetches my robots.txt. After that, I will
 re-enable websvn and hopefully it will be okay after that.

 ---
 James

Doesn't the commandline svn tool have a blame feature? It's been so
long since I used SVN. Back when I used to, I used TortoiseSVN's blame
feature a lot and loved the GUI.

However, now that I use Git, I just read blames on the commandline.
The difference between blame in svn and in git is that building a
blame in svn used to take a minute, while in git it's milliseconds,
and there's a vast collection of options for tweaking it! And I find
the convenience of using a pager makes up for not using a GUI, so I
haven't even bothered looking for one.

I sometimes use websvn when I want to look at something in the games
or tools portions of the repository when on a machine where I don't
have those checked out.
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] Was anybody using websvn?

2011-11-15 Thread James Paige
On Wed, Nov 16, 2011 at 07:58:04AM +1300, Ralph Versteegen wrote:
 On 16 November 2011 07:42, James Paige b...@hamsterrepublic.com wrote:
  On Tue, Nov 15, 2011 at 10:39:25AM -0800, Adam Perry wrote:
     On Tue, Nov 15, 2011 at 10:31 AM, James Paige b...@hamsterrepublic.com
     wrote:
 
       Was anybody using the websvn interface to the ohrrpgce repository on
       gilgamesh? I only occasionally used it myself because it was nice to 
  be
       able to use the blame feature to figure out when a specific line was
       last changed.
 
     I use it occasionally. I don't suppose you can just disable blame?
 
 
  But that is the best feature!
 
  I updated my robots.txt file to tell msnbot to chill out, but it might
  take a day or two before it re-fetches my robots.txt. After that, I will
  re-enable websvn and hopefully it will be okay after that.
 
  ---
  James
 
 Doesn't the commandline svn tool have a blame feature? It's been so
 long since I used SVN. Back when I used to, I used TortoiseSVN's blame
 feature a lot and loved the GUI.
 
 However, now that I use Git, I just read blames on the commandline.
 The difference between blame in svn and in git is that building a
 blame in svn used to take a minute, while in git it's milliseconds,
 and there's a vast collection of options for tweaking it! And I find
 the convenience of using a pager makes up for not using a GUI, so I
 haven't even bothered looking for one.

Oh! Nifty! I didn't know about the svn blame command line tool, and 
I had assumed that websvn was building that output itself.

It does seem a little slow for me, but only like 3 or 4 seconds, so it 
is useable (probably because I am on the same LAN as the server)

 I sometimes use websvn when I want to look at something in the games
 or tools portions of the repository when on a machine where I don't
 have those checked out.

I'll get it back online in a couple days.

---
James
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] Was anybody using websvn?

2011-11-15 Thread Mike Caron

On 15/11/2011 1:58 PM, Ralph Versteegen wrote:

On 16 November 2011 07:42, James Paigeb...@hamsterrepublic.com  wrote:

On Tue, Nov 15, 2011 at 10:39:25AM -0800, Adam Perry wrote:

On Tue, Nov 15, 2011 at 10:31 AM, James Paigeb...@hamsterrepublic.com
wrote:

  Was anybody using the websvn interface to the ohrrpgce repository on
  gilgamesh? I only occasionally used it myself because it was nice to be
  able to use the blame feature to figure out when a specific line was
  last changed.

I use it occasionally. I don't suppose you can just disable blame?



But that is the best feature!

I updated my robots.txt file to tell msnbot to chill out, but it might
take a day or two before it re-fetches my robots.txt. After that, I will
re-enable websvn and hopefully it will be okay after that.

---
James


Doesn't the commandline svn tool have a blame feature? It's been so
long since I used SVN. Back when I used to, I used TortoiseSVN's blame
feature a lot and loved the GUI.

However, now that I use Git, I just read blames on the commandline.
The difference between blame in svn and in git is that building a
blame in svn used to take a minute, while in git it's milliseconds,
and there's a vast collection of options for tweaking it! And I find
the convenience of using a pager makes up for not using a GUI, so I
haven't even bothered looking for one.

I sometimes use websvn when I want to look at something in the games
or tools portions of the repository when on a machine where I don't
have those checked out.
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Warning: Not necessarily typical results.

We use git at work, and running a git blame command usually takes about 
10 seconds. Now, granted, we have lots of history, branches and 
altogether nastiness. I assume that runtime is directly proportional to:


1. How recently the oldest line was touched, and
2. How complex the history is between now and that point.

(Of course, adding a graphical tool on top won't speed any of that up, 
but that's beside the point)


--
- Mike Caron
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org