Skip to content

Instantly share code, notes, and snippets.

@tomoh1r
Last active January 4, 2016 02:19
Show Gist options
  • Save tomoh1r/8554471 to your computer and use it in GitHub Desktop.
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