1/19/2012 10:34:54 PM
At work we recently decided to make the jump to working with a DVCS and Mercurial was what we decided to go with. We had some Subversion repositories that we wanted to migrate to Mercurial and after some poking around the interwebs, here is what I've come up with to get things migrated.
- Open command prompt into parent folder where Hg repo should be created
- Use command: hg convert <repo url> (e.g. hg convert https://some.repo.url/ )
- Hg repo will be created as <repo name>-hg (e.g. MyRepo-hg)
- set destination by using hg convert <source repo url> <destination repo url>
- optionally set user names to get better conversion --authors
Convert can also remap author names during conversion, if the --authors option is provided. The argument should be a simple text file that maps each source commit author to a destination commit author. It is handy for source SCMs that use UNIX logins to identify authors (eg: CVS). Example:
john=John Smith <John.Smith@someplace.net>
tom=Tom Johnson <Tom.Johnson@bigcity.com>
To convert subfolders of a repo into a new Mercurial repo just add the --filemap option. The argument should be a simple text file that lists which directories to exclude and which to rename as the root. The conversion will need to be run once for each subdirectory you want to split out, with appropriate settings in the filemap file. This is best done from a local SVN mirror if the repo is large.
Sample filemap file (note the . to set the new root with rename):
exclude Blog
rename Core .
exclude KN
With all of the options tacked on, this is what you'll end up with:
hg convert <svn_repo> <local_hg_repo_path> --authors <author map file> --filemap <repo map file>
e.g. hg convert https://remote.repo.url NewRepo --authors authors.txt --filemap repomap.txt
I had a fairly difficult time finding a good example of how to accomplish all of these things together so hopefully this will save some time for the next person.
Tags:Mercurial 12/27/2010 8:32:29 PM
Well 2010 is all but over at this point and I'd like to take some time to review the goals I had set for myself at the beginning of the year:
- Build a site using ASP.NET MVC
- Build a site using Ruby on Rails
- Create a basic game using the XNA Framework
- Use WPF to create a CarPC application with 2 plug-ins:
- MusicPlayer
- Podcast Listener
- Complete 5 freelance projects
- Read 12 books
Wow, that was a much more lofty set of goals than I had realized. I did manage to cover the 12 books, so that was a win. I did also get a handle on the ASP.NET MVC framework and used it to write the SportsPools website that manages our yearly NFL King of the Hill contest. I also completed 2 freelance projects. Alright so that puts me somewhere around 2.4 out of 6 or 40% successful. That's not great but I did have a lot of success in my personal life that kept me away from these goals.
So what was more important than these arbitrary goals you ask? Well I started a new job, purchased a home for the first time and I also got engaged (all within 3 months). Between working on the house and beginning to plan for the wedding, my goals definitely started flying out the window. I think setting goals for myself has been a way to keep me focused and on track. I'm planning to hash out another post in the next few days to declare a few goals for 2011. Knowing that I have a wedding coming up, I think the 2011 goal list will look a bit skimpy compared to this list, but the things that I didn't get to are certainly hanging out on the "Someday" list.
It's been a great year and I look forward to many more.
Cheers,
Brent
Tags:Personal 3/10/2011 11:15:49 AM
Here is a list of my favorite extensions for Google Chrome. I'll try to keep the list updated as I discover new extensions.
- MeasureIt! - Measure rectangular areas on a web page
- Chromelicious - Easy access to delicious links
- Pendule - Miscellaneous collection of web developer tools
- Chrome Sniffer - See what client-side tools a site is using
- goo.gl URL Shortener - shorten URLs with this handy extension
- Webpage Screenshot - Take a screenshot of the page you are viewing
- Resolution Test - Test the current page in different screen resolutions
- Firebug Lite - FireBug for Chrome but missing only a couple features from the FireFox extension.
- Eye Dropper - Color picker for inside Chrome.
- PrettyJSON - JSON formatter to make reading JSON easier on the eyes
- Sight - Syntax highlighter to make reading code easier
- RSS Subscription - Add the ability to subscribe to RSS feeds on the page from within Chrome
- YSlow for Chrome - Yahoo's FireFox performance tool ported to Chrome
Tags:chrome 3/13/2010 3:52:02 PM
I started using Windows 7 on a new machine and started to miss my old "Send To Notepad" short when browsing around Windows Explorer. I noticed that you can't just get straight to the Send To folder under the user account anymore, so I dug up this path that allows you to add items to the Send To menu.
Just put this in the address bar of Windows Explorer and you'll be able to add whatever you like to the Send To menu:
%APPDATA%\Microsoft\Windows\SendTo
I like to add a shortcut to NotePad, but there are any number of things that this is useful for.
Tags:windows7