/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/_dirstate_helpers_c.h

  • Committer: Lukáš Lalinský
  • Date: 2007-11-30 21:10:18 UTC
  • mto: This revision was merged to the branch mainline in revision 3112.
  • Revision ID: lalinsky@gmail.com-20071130211018-j2w4oxlej3x8qocx
Fix misplaced branch lock in cmd_send.

The branch should be opened and locked outside of the try/finally block, othewise we get an UnboundLocalError exception in "finally" if Branch.open_containing failed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _DIRSTATE_HELPERS_C_H
 
2
#define _DIRSTATE_HELPERS_C_H
 
3
 
 
4
/* for intptr_t */
 
5
#ifdef _MSC_VER
 
6
#include <io.h>
 
7
#else
 
8
#include <stdint.h>
 
9
#endif
 
10
 
 
11
#endif