[PATCH 0 of 2] bts/216: unbundle command does not accept multiple file arguments

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Apr 25 15:15:07 UTC 2007


Hi all,

ThomasAH suggested that bts/216 is a fix which would be easy enough for
a beginning Python hacker.  I've tried mmodifying "hg unbundle" to
support multiple bundle files in one command-line, like:

    % hg unbundle /tmp/alpha.hg /tmp/beta.hg

but I have a few questions about the best way to handle the --update
option of the 'unbundle' command.

* Should I let unbundle run hg.update() and postincoming() functions
  once for each bundle, or just once when all bundles have been pulled
  as changesets into the local repo?

* Is the style of checking for an error/return when postincoming() is
  called good enough?  I haven't written or read enough Python to just
  know what the best way of breaking out early on error would be.




More information about the Mercurial-devel mailing list