Posts

Showing posts from October, 2011

Migrating from Subversion to Mercurial

This is an alternative way of migrating from SVN to Mercurial using HgSubversion as oppose to using convert extension. It allows you to push changes from local Mercurial repository to both Subversion and Mercurial during the transition period.Install HgSubversionhg clone http://bitbucket.org/durin42/hgsubversion/ <local-path>\hgsubversionAdd HgSubversion extension to your main hgrc file[extensions]
hgsubversion = <local-path>\hgsubversion\hgsubversionClone existing subversion repositoryhg clone http://<username>@<svn-project-path> <local-project-folder>Edit project .hgrc file (/hg/.hgrc)[paths]
default = http://<username>@<hg-remote-project-path>
svn = http://<username>@<svn-project-path>Create new mercurial project in your remote Hg repository (see Rhodecode)Pushing the project to remote mercurial repositoryhg pushPushing to subversionhg push svnIf you’re using mercurial_keyring extension to store Hg passwords and you…

Save window size & position in WPF

* Right Click on Settings.settings and Open With XML (Text) Editor* Add Top, Left, Height, Width & WindowState settings<Settings><SettingName="Top"Type="System.Double"Scope="User"><ValueProfile="(Default)">50</Value></Setting><SettingName="Left"Type="System.Double"Scope="User"><ValueProfile="(Default)">50</Value></Setting><SettingName="Height"Type="System.Double"Scope="User"><ValueProfile="(Default)">800</Value></Setting><SettingName="Width"Type="System.Double"Scope="User"><ValueProfile="(Default)">1200</Value></Setting><SettingName="WindowState"Type="System.Windows.WindowState"Scope="User"><ValueProfile="(Default)">Normal</Value></Setting></Settings>* Ad…