Win: 'Start bzr in cmd shell' starts in bzr directory and not My Documents

Bug #505520 reported by Ernst
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Windows Installers
Confirmed
Wishlist
Unassigned

Bug Description

[Actually a wish, not a bug]

If I start the bzr cmd shell from the start menu in Windows, it opens a shell in the bzr directory. However, I think it is better to go to the My Documents folder of the current user, as it is far more likely that files under version control resist in My Documents.
I agree it could also be another directory, but the current settings could be more user friendly.

I'm using bzr 2.0.3.

Martin Pool (mbp)
affects: bzr → bzr-windows-installers
Revision history for this message
Ernst (ernst-blaauw) wrote :

To go to My Documents, add the following to start_bzr.bat:

@FOR /F "tokens=2* delims= " %%A IN ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v personal') DO @SET MyDoc=%%B
@cd /d "%MyDoc%"

Revision history for this message
Alexander Belchenko (bialix) wrote :

Ernst, have you tested this suggestion? Maybe you can provide a patch?

Changed in bzr-windows-installers:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Ernst (ernst-blaauw) wrote : Re: [Bug 505520] Re: Win: 'Start bzr in cmd shell' starts in bzr directory and not My Documents

Well, it works on my installation, but I don't know how to provide a patch
(I've never done that). Can you point me where to find some info (can take
some time, do not have much spare time atm)?

On Thu, Sep 30, 2010 at 20:50, Alexander Belchenko <email address hidden> wrote:

> Ernst, have you tested this suggestion? Maybe you can provide a patch?
>
> ** Changed in: bzr-windows-installers
> Importance: Undecided => Wishlist
>
> ** Changed in: bzr-windows-installers
> Status: New => Confirmed
>
> --
> Win: 'Start bzr in cmd shell' starts in bzr directory and not My Documents
> https://bugs.launchpad.net/bugs/505520
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Martin Pool (mbp) wrote :

Hi Ernst,

Have a look at the general instructions in
<http://wiki.bazaar.canonical.com/BzrGivingBack> which will show you
how to get a copy of the source and how to propose a change. If you
have more questions, please just ask.

--
Martin

Revision history for this message
Alexander Belchenko (bialix) wrote :

Ernst пишет:
> Well, it works on my installation, but I don't know how to provide a patch
> (I've never done that). Can you point me where to find some info (can take
> some time, do not have much spare time atm)?

OK, so you need to get the copy of the installer scripts branch first
with command:

bzr branch lp:bzr-windows-installers

Then you need to add required code to start_bzr.bar file which is
located in that branch as filesets/inno/start_bzr.bat

Then commit your changes as usual and push your changes as new branch on
LP, e.g.

bzr push lp:~ernst-blaauw/bzr-windows-installers/bug-505520

Make sure you have SSH key added to your profile on launchpad and you
has issued `bzr lp-login` command before push.

After that open the web page for newly created branch with command

bzr lp-open

and in the web interface use "Propose for merge" link to file a merge
request. HTH.

NOTE: you can do all the steps above via Bazaar Explorer, using
corresponding GUI commands.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.