diff - How to get modified files and lines impacted at a given revision with mercurial style? -


i trying extract files impacted revision , changed lines in files mercurial.

so far, i've list of files :

hg log --stat -p -r r --style my_style 

my_style

changeset = "{date|hgdate}\n{files}\n" file = "{file}\n" 

here's output example :

1200467360 0  groovy.editor/src/org/netbeans/modules/groovy/editor/lexer/groovylexer.java  1 files changed, 3 insertions(+), 2 deletions(-)  diff -r a72d4e87d6cf -r 260a269563c6 groovy.editor/src/org/netbeans/modules/groovy/editor/lexer/groovylexer.java --- a/groovy.editor/src/org/netbeans/modules/groovy/editor/lexer/groovylexer.java   wed jan 16 06:16:32 2008 +0000 +++ b/groovy.editor/src/org/netbeans/modules/groovy/editor/lexer/groovylexer.java   wed jan 16 07:09:20 2008 +0000 @@ -112,7 +112,7 @@              if (antlrtoken != null) {                  int intid = antlrtoken.gettype();  -                int len = lexerinput.readlength() - mycharbuffer.getextracharcount(); +                int len = lexerinput.readlengtheof() - mycharbuffer.getextracharcount();                  if ( antlrtoken.gettext() != null ) {                      len = math.max( len, antlrtoken.gettext().length() );                  } @@ -129,7 +129,8 @@                      }                  }  -                if ( scanner.getstringctorstate() != 0) { +                // state 8 occured '}' character closing expression in gstring +                if ( scanner.getstringctorstate() != 0 && scanner.getstringctorstate() != 8) {                      intid = groovytokentypes.string_literal;                  } 

what similar to:

1200467360 0   groovy.editor/src/org/netbeans/modules/groovy/editor/lexer/groovylexer.java @@ -112,7 +112,7 @@ @@ -129,7 +129,8 @@ 

is there way achieve in style file ? if not, best way achieve ?


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -