Please, some "partial-silency" option for pull

Marcin Kasperski Marcin.Kasperski at softax.com.pl
Mon Dec 1 11:45:30 UTC 2008


It would be nice if hg pull could be configured to suppress output
when there are no changes transferred.

Rationale:

   I frequently use different "pull many repositories at once"
   scripts, from

      for dir in *
      do
          hg --cwd $dir pull 
      done

   to more complicated "syncthemall" scripts.

   The output of such a command is difficult to read as truly useful
   information is lost among numerous

      pulling from (...)
      searching for changes
      no changes found

   messages. I'd prefer to see only info about directories where
   "something" happened.

   (at the same time hg -q pull supressess everything, also the
    useful info)

Syntax suggestion:

   hg pull --silent

Alternative syntax suggestion:

   It could be even better idea to introduce some global option of
   similar meaning (report "interesting" information but suppress
   notifications that nothing happened, nothing was found, no files
   were updated, nothing was added etc etc). This would establish a
   convention for different commands.

   It could be introduced as

   hg --quiet=partial command

   or sth similar.

   Again: it would be intended for use in scripts, cron jobs
   (like http://blog.mekk.waw.pl/archives/8-Mercurial-as-a-backup-tool-on-MoinMoin-example.html) etc etc







More information about the Mercurial mailing list