emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vc-update for bzr etc.


From: Stefan Monnier
Subject: Re: vc-update for bzr etc.
Date: Sun, 21 Nov 2010 21:04:28 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>>> So the full functionality for Bzr should be something like this:
>>> - If it's a bound branch, do bzr update.
>>> - Otherwise, if there is a default pull location, prompt for a location
>>> and do "bzr merge --pull".
>>> - Otherwise, just do "bzr merge --pull" to use the default location.
>>> Does this sound right?
>> 
>> If it's not bound, it should just use "bzr pull" without prompting
>> the user, IMO.

> The "bzr pull" operation only works if the branches have not diverged.
> If the vc pull operation corresponds to "bzr pull", then what would it
> do in git?  IIUC, git pulls perform merging automatically, so if vc-pull
> does "bzr pull" in bzr and "git pull" in git, it would be doing two
> different things.

> That's why I thought the closest common denominator would be to use
> bzr's "merge --pull".

VC tries to present a uniform UI and that is good, but trying to impose
a uniform semantics to all commands is asking too much.  So I think it's
perfectly OK for vc-pull/update to do "bzr pull" for Bzr and
"git pull" for Git, even if they don't do exactly the same thing.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]