facebook / sapling

A Scalable, User-Friendly Source Control System.

Home Page:https://sapling-scm.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting "warning: ':' is deprecated; use '::' instead"

alex-statsig opened this issue · comments

I'm trying to get all modified files since main (to run linting only against changed files in your stack). To accomplish this, I'm running sl st --rev "wdir():main". The ":" syntax is described in the sl help revisions docs, and on the sapling website in a number of places (ex. https://sapling-scm.com/docs/commands/diff suggests sl diff --git -r 5be761874:431ec8e07 lib/).

I noticed recently I get warning: ':' is deprecated; use '::' instead. when using a revset containing ":". It seems that ":" behaves differently from "::". Is this warning correct?

It sounds like . % main might be what you want?