Skip to content

Instantly share code, notes, and snippets.

@tomoh1r
Last active January 4, 2016 02:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tomoh1r/8554471 to your computer and use it in GitHub Desktop.
「或るファイルが修正された或るリビジョンの「次や前に」修正されたリビジョン」を機械的にとる

或るファイルが修正された或るリビジョンの次のリビジョン:

hg log --rev "min(modifies('</target/file/path>') and <target_change_set>: and ! <target_change_set>)"

或るファイルが修正された或るリビジョンの前のリビジョン:

hg log --rev "max(modifies('</target/file/path>') and :$<target_change_set>~1)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment